:root {
    --orange-primary: #ff6b35;
    --orange-secondary: #ff8c42;
    --orange-light: #ffeee8;
    --orange-dark: #e55a2b;
    --orange-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);

    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary-color: #6f42c1;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-gray: #f8fafc;
    --border-color: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Orange Button Styles */
.btn-orange {
    background: var(--orange-gradient);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #ff6b35 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-outline-orange {
    border: 2px solid var(--orange-primary);
    color: var(--orange-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background: var(--orange-gradient);
    border-color: var(--orange-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.btn-outline-orange:disabled {
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.bg-orange {
    background: var(--orange-gradient) !important;
    color: white;
}

.text-orange {
    color: var(--orange-primary) !important;
}

.badge.bg-orange {
    background: var(--orange-gradient) !important;
    color: white;
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* User Dropdown Specific */
.user-dropdown .avatar {
    width: 36px;
    height: 36px;
    background-color: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
}

.user-dropdown .avatar-lg {
    width: 60px;
    height: 60px;
    background-color: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 1.5rem;
}

.user-dropdown .user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.user-dropdown .user-role {
    font-size: 0.75rem;
    color: #718096;
}

/* Logout Button */
.logout-btn {
    color: #e53e3e;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.logout-btn:hover {
    background-color: #fff5f5;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

/* Academic Calendar Section - Enhanced Responsive Design */
.academic-calendar-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.academic-calendar-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 20% 30%,
            rgba(255, 107, 53, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(255, 140, 66, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.calendar-section-wrapper {
    position: relative;
    z-index: 1;
}

/* Enhanced PDF Preview Container */
.pdf-preview-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 30px rgba(255, 107, 53, 0.06);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.pdf-preview-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12),
        0 12px 40px rgba(255, 107, 53, 0.1);
}

/* PDF Header with Better Responsive Design */
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 35px;
    background: linear-gradient(135deg, var(--orange-light) 0%, #ffffff 100%);
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.pdf-info {
    flex: 1;
    min-width: 0;
}

.pdf-info h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.3;
    word-wrap: break-word;
}

.pdf-info .badge {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pdf-controls {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Enhanced PDF Viewer Container */
.pdf-viewer-container {
    position: relative;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}
/* Simplified PDF Toolbar */
.pdf-toolbar {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pdf-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-info {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

/* Enhanced PDF Canvas Container - Simplified */
.pdf-canvas-container {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, #f5f6fa 0%, #ffffff 100%);
    padding: 20px 10px; /* Fixed padding instead of dynamic */
    overflow: hidden; /* Prevent overflow issues */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Minimum height for loading state */
}

.pdf-canvas-wrapper {
    display: inline-block;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(255, 107, 53, 0.1);
    overflow: hidden;
    background: white;
    border: 3px solid rgba(255, 107, 53, 0.1);
    max-width: 100%;
}

#pdfCanvas {
    display: block;
    background: white;
    max-width: 100%;
    height: auto;
    /* REMOVE: forced width/height styles that conflict with JS */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
/* Responsive Design */
@media (max-width: 767.98px) {
    .pdf-toolbar {
        padding: 10px 15px;
    }

    .pdf-navigation {
        gap: 10px;
    }

    .pdf-navigation .btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .page-info {
        font-size: 13px;
    }

    .pdf-canvas-wrapper {
        border-radius: 8px;
        border-width: 2px;
    }
}

@media (max-width: 575.98px) {
    .pdf-toolbar {
        padding: 8px 10px;
    }

    .pdf-navigation .btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .page-info {
        font-size: 12px;
    }
    .pdf-canvas-container {
        padding: 15px 5px;
        min-height: 150px;
    }

    .pdf-canvas-wrapper {
        border-radius: 8px;
        border-width: 2px;
        max-width: calc(100vw - 30px); /* Ensure it fits in viewport */
    }

    #pdfCanvas {
        border-radius: 6px;
    }
}

@media (max-width: 359px) {
    .pdf-canvas-container {
        padding: 10px 3px;
    }

    .pdf-canvas-wrapper {
        max-width: calc(100vw - 20px);
    }
}

/* Improved button styles */
.pdf-navigation .btn {
    transition: all 0.2s ease;
    border-width: 1.5px;
}

.pdf-navigation .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.pdf-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Improved scrollbar for PDF container */
.pdf-canvas-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pdf-canvas-container::-webkit-scrollbar-track {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 4px;
}

.pdf-canvas-container::-webkit-scrollbar-thumb {
    background: var(--orange-gradient);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-canvas-container::-webkit-scrollbar-thumb:hover {
    background: var(--orange-dark);
}

/* Focus improvements for accessibility */
.pdf-toolbar .btn:focus-visible {
    outline: 2px solid var(--orange-primary);
    outline-offset: 2px;
}

/* Enhanced loading state */
.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

/* Print styles */
@media print {
    .pdf-header,
    .pdf-toolbar {
        display: none;
    }

    .pdf-canvas-container {
        padding: 0;
        min-height: auto;
    }

    .pdf-preview-container {
        box-shadow: none;
        border: none;
        margin: 0;
    }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .pdf-canvas-wrapper {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Modern Footer Design - Clean Dark Slate & Amber Accent */
.footer {
    position: relative;
    background-color: #0f172a;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(255, 140, 66, 0.03) 0%, transparent 50%);
    color: #f8fafc;
    font-size: 14px;
    overflow: hidden;
    isolation: isolate;
}

.footer-glow-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.2) 20%, 
        var(--orange-primary) 50%, 
        rgba(255, 107, 53, 0.2) 80%, 
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    position: relative;
    padding: 60px 0 45px;
}

/* Enhanced Brand Section */
.footer-brand .logo {
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-brand .logo:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.footer-brand .logo-img {
    height: 46px;
    width: auto;
    margin-right: 12px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.footer-brand .sitename {
    font-family: var(--heading-font, "Poppins", "Figtree", sans-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.footer-description {
    font-size: 14px;
    line-height: 1.65;
    margin: 14px 0 24px;
    color: #94a3b8;
    max-width: 380px;
}

/* Modern Contact Section */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact .contact-item:hover {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.25);
    transform: translateX(4px);
}

.footer-contact .contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.25s ease;
}

.footer-contact .contact-item:hover .contact-icon {
    background: var(--orange-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.footer-contact .contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #64748b;
}

.footer-contact .contact-value {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.footer-contact .contact-item:hover .contact-value {
    color: #ffffff;
}

/* Enhanced Social Links */
.social-links .social-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    color: #94a3b8;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #e6683c;
    box-shadow: 0 4px 14px rgba(230, 104, 60, 0.35);
}

/* Modern Footer Links */
.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4 .title-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--orange-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.footer-links h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--orange-primary);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 400;
    transition: all 0.25s ease;
    padding: 4px 0;
}

.footer-links ul a i {
    font-size: 11px;
    margin-right: 8px;
    transition: transform 0.25s ease, color 0.25s ease;
    color: rgba(255, 107, 53, 0.7);
}

.footer-links ul a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-links ul a:hover i {
    transform: translateX(2px);
    color: var(--orange-primary);
}

/* Modern Footer Bottom */
.footer-bottom {
    background: #090d16;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 1;
}

.copyright-text {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.copyright-text .sitename {
    font-weight: 600;
    color: #f1f5f9;
}

.footer-credits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    font-size: 13px;
    color: #94a3b8;
}

.divider-dot {
    color: rgba(255, 255, 255, 0.2);
}

.developer-link,
.institution-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.developer-link {
    color: var(--orange-primary);
}

.developer-link:hover,
.institution-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Modern Back to Top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(
        135deg,
        var(--orange-primary) 0%,
        var(--orange-secondary) 100%
    );
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.4);
    background: linear-gradient(
        135deg,
        var(--orange-secondary) 0%,
        var(--orange-primary) 100%
    );
}

/* Performance Optimizations */
.footer * {
    contain: layout;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-brand .sitename {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    .footer-top {
        padding: 50px 0 35px;
    }

    .footer-credits {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 30px;
    }

    .footer-brand .sitename {
        font-size: 22px;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-credits {
        text-align: center;
        flex-direction: row;
        justify-content: center;
        gap: 6px;
    }

    .footer-links h4 {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        padding: 35px 0.5rem 25px;
    }

    .footer-brand .sitename {
        font-size: 20px;
    }

    .footer-description {
        font-size: 13.5px;
    }

    .footer-contact .contact-item {
        padding: 8px 12px;
    }

    .footer-credits {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }

    .divider-dot {
        display: none;
    }
}

    .footer-brand .sitename {
        font-size: 22px;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-credits {
        font-size: 12px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Accessibility Improvements */
.footer-links ul a:focus-visible,
.social-link:focus-visible,
.footer-contact .contact-link:focus-visible,
.developer-link:focus-visible,
.institution-link:focus-visible {
    outline: 2px solid var(--orange-primary);
    outline-offset: 2px;
}

/* Performance: Disable animations on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .footer *,
    .social-link,
    .footer-links ul a,
    .contact-item {
        transition: none;
        animation: none;
    }
}

/* User Dropdown Button */
.user-dropdown-wrapper {
    position: relative;
    max-width: 220px;
}

.user-dropdown-btn {
    padding: 4px 12px 4px 4px !important;
    border-radius: 50px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #0f172a !important;
}

.user-dropdown-btn:hover, .user-dropdown-btn[aria-expanded="true"] {
    background: #ffffff !important;
    border-color: rgba(255, 107, 53, 0.4) !important;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.15) !important;
    transform: translateY(-1px);
}

.user-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.avatar-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name-compact {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    max-width: 85px;
}

.user-dropdown-btn:hover .user-name-compact {
    color: var(--orange-primary);
}

.dropdown-arrow-icon {
    font-size: 0.72rem;
    color: #64748b;
    transition: transform 0.25s ease;
}

.user-dropdown-btn[aria-expanded="true"] .dropdown-arrow-icon {
    transform: rotate(180deg);
    color: var(--orange-primary);
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px; /* Batasi lebar nama */
    cursor: help; /* Show cursor hint for tooltip */
}

.user-role {
    color: var(--orange-primary);
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    white-space: nowrap;
}

/* Enhanced Dropdown Menu */
.user-dropdown-menu {
    min-width: 320px;
    max-width: 340px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    animation: dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-top: 10px;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Profile Header */
.user-profile-header {
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    overflow: hidden;
}

.profile-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 3px solid var(--orange-primary);
    z-index: 1;
}

.profile-content {
    position: relative;
    z-index: 3;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.avatar-text-large {
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.profile-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 3px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-nim {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    margin-bottom: 2px;
    font-weight: 500;
}

.profile-email {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-badge {
    background: rgba(255, 107, 53, 0.18);
    color: #ff8c52;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    display: inline-block;
}

/* Responsive Design untuk Nama Panjang */
@media (max-width: 1199.98px) {
    .user-dropdown-wrapper {
        max-width: 200px;
    }

    .user-name {
        max-width: 100px;
        font-size: 13px;
    }
}


@media (max-width: 767.98px) {
    .user-dropdown-wrapper {
        max-width: 160px;
    }

    .user-dropdown-menu {
        min-width: 260px;
        margin-top: 5px;
    }

    .profile-content {
        padding: 18px 12px;
    }

    .profile-name {
        font-size: 14px;
    }

    .profile-email {
        font-size: 10px;
    }
}



/* Tooltip Enhancement */
.user-name[title]:hover::after,
.profile-name[title]:hover::after,
.profile-email[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    pointer-events: none;
}

.user-name[title]:hover::before,
.profile-name[title]:hover::before,
.profile-email[title]:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    margin-bottom: 1px;
    pointer-events: none;
}

/* Dropdown Sections */
.dropdown-section {
    padding: 15px 20px;
}

.dropdown-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dropdown-section-title i {
    font-size: 14px;
}

/* ===============================================
   COMPACT SERVICES SECTION IN DROPDOWN
   =============================================== */

.dropdown-section.services-section {
    padding: 15px 18px;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
}

.dropdown-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.dropdown-section-title i {
    font-size: 13px;
    color: #ff6b2c;
}

/* Specific 3-Column Grid for Services inside User Dropdown */
.user-dropdown-menu .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
}

.user-dropdown-menu .service-card-mini {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 6px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: #334155 !important;
    transition: all 0.25s ease !important;
    border: 1px solid #e2e8f0 !important;
    min-height: 72px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
    position: relative !important;
    overflow: hidden !important;
}

.user-dropdown-menu .service-card-mini:hover {
    border-color: rgba(255, 107, 53, 0.4) !important;
    background: rgba(255, 107, 53, 0.05) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(255, 107, 53, 0.15) !important;
}

.user-dropdown-menu .service-icon-mini {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 9px !important;
    background: rgba(255, 107, 53, 0.1) !important;
    color: var(--orange-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    margin-bottom: 4px !important;
    transition: all 0.25s ease !important;
}

.user-dropdown-menu .service-card-mini:hover .service-icon-mini {
    background: var(--orange-gradient) !important;
    color: #ffffff !important;
}

.user-dropdown-menu .service-name-mini {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.25 !important;
    color: #334155 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}

.user-dropdown-menu .service-card-mini:hover .service-name-mini {
    color: var(--orange-dark) !important;
}

/* View All Services Button - Compact */
.view-all-services {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 107, 44, 0.15);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #ff6b2c 0%, #ff8c52 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 44, 0.2);
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #ff8c52 0%, #ff6b2c 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255, 107, 44, 0.3);
}

.btn-view-all i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(2px);
}

/* Empty State - Compact */
.services-grid .text-center {
    grid-column: 1 / -1;
    padding: 15px 10px;
}

.services-grid .text-center i {
    font-size: 28px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.services-grid .text-center p {
    font-size: 11px;
}

/* ===============================================
   COMPACT QUICK ACTIONS SECTION
   =============================================== */

.dropdown-section {
    padding: 12px 18px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    font-size: 11px;
    font-weight: 600;
}

.quick-action-btn:hover {
    border-color: #ff6b2c;
    background: rgba(255, 107, 44, 0.05);
    color: #ff6b2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 44, 0.15);
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-icon.tracking {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.action-icon.services {
    background: rgba(255, 107, 44, 0.1);
    color: #ff6b2c;
}

.quick-action-btn:hover .action-icon.tracking {
    background: #3b82f6;
    color: white;
    transform: scale(1.05);
}

.quick-action-btn:hover .action-icon.services {
    background: #ff6b2c;
    color: white;
    transform: scale(1.05);
}

.action-icon i {
    font-size: 16px;
}

/* ===============================================
   COMPACT LOGOUT SECTION
   =============================================== */

.dropdown-footer {
    padding: 10px 15px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 2px solid #fee2e2;
    border-radius: 10px;
    color: #dc2626;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logout-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.logout-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logout-btn:hover .logout-icon {
    background: rgba(255, 255, 255, 0.2);
}

.logout-icon i {
    font-size: 14px;
}

.logout-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.logout-btn:hover .logout-arrow {
    transform: translateX(3px);
}

.logout-arrow i {
    font-size: 12px;
}

/* ===============================================
   COMPACT DROPDOWN MENU SIZE
   =============================================== */

.user-dropdown-menu {
    min-width: 340px;
    max-width: 380px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 16px;
}

/* Slim Scrollbar */
.user-dropdown-menu::-webkit-scrollbar {
    width: 5px;
}

.user-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 107, 44, 0.05);
    border-radius: 10px;
}

.user-dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b2c 0%, #ff8c52 100%);
    border-radius: 10px;
}

.user-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #ff6b2c;
}

/* Compact Divider */
.user-dropdown-menu .dropdown-divider {
    margin: 0;
    opacity: 0.7;
}

/* ===============================================
   COMPACT PROFILE HEADER
   =============================================== */

.user-profile-header {
    position: relative;
    padding: 0;
    margin-bottom: 0;
}

.profile-content {
    position: relative;
    z-index: 3;
    padding: 20px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.avatar-large {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-text-large {
    color: white;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
}

.profile-name {
    color: white;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
    line-height: 1.3;
}

.profile-nim {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    margin-bottom: 2px;
    font-weight: 500;
}

.profile-email {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    margin-bottom: 6px;
}

.profile-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

/* ===============================================
   RESPONSIVE DESIGN - COMPACT VERSION
   =============================================== */

@media (max-width: 1199.98px) {
    .user-dropdown-menu {
        min-width: 320px;
        max-width: 360px;
    }

    .services-grid {
        gap: 6px;
    }

    .service-card-mini {
        padding: 8px 5px;
        min-height: 70px;
    }

    .service-icon-mini {
        width: 32px;
        height: 32px;
    }

    .service-icon-mini i {
        font-size: 14px;
    }

    .service-name-mini {
        font-size: 9px;
    }
}


@media (max-width: 767.98px) {
    .user-dropdown-menu {
        min-width: 280px;
        max-width: calc(100vw - 30px);
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .service-card-mini {
        padding: 8px 4px;
        min-height: 65px;
    }

    .service-icon-mini {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
    }

    .service-icon-mini i {
        font-size: 13px;
    }

    .service-name-mini {
        font-size: 9px;
    }

    .btn-view-all {
        padding: 6px 14px;
        font-size: 10px;
    }

    .dropdown-section {
        padding: 10px 15px;
    }

    .dropdown-section-title {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .profile-content {
        padding: 18px 15px;
    }
}

@media (max-width: 575.98px) {
    .user-dropdown-menu {
        min-width: 260px;
        max-width: calc(100vw - 20px);
    }

    .services-grid {
        gap: 5px;
    }

    .service-card-mini {
        padding: 7px 3px;
        min-height: 62px;
    }

    .service-icon-mini {
        width: 28px;
        height: 28px;
    }

    .service-icon-mini i {
        font-size: 12px;
    }

    .service-name-mini {
        font-size: 8.5px;
    }

    .dropdown-section.services-section {
        padding: 10px 12px;
    }

    .quick-action-btn {
        padding: 9px 5px;
        font-size: 9.5px;
    }

    .action-icon {
        width: 30px;
        height: 30px;
    }

    .action-icon i {
        font-size: 13px;
    }

    .logout-btn {
        padding: 9px 10px;
        font-size: 11px;
    }

    .logout-icon {
        width: 28px;
        height: 28px;
    }
}

/* ===============================================
   LOADING STATE
   =============================================== */

.services-grid.loading {
    position: relative;
    min-height: 80px;
}

.services-grid.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 107, 44, 0.2);
    border-top-color: #ff6b2c;
    border-radius: 50%;
    animation: spin-loader 0.8s linear infinite;
}

@keyframes spin-loader {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===============================================
   ACCESSIBILITY
   =============================================== */

.service-card-mini:focus-visible,
.quick-action-btn:focus-visible,
.btn-view-all:focus-visible,
.logout-btn:focus-visible {
    outline: 2px solid rgba(255, 107, 44, 0.5);
    outline-offset: 2px;
}

/* ===============================================
   REDUCED MOTION
   =============================================== */

@media (prefers-reduced-motion: reduce) {
    .service-card-mini,
    .service-icon-mini,
    .service-icon-mini i,
    .quick-action-btn,
    .action-icon,
    .btn-view-all,
    .btn-view-all i,
    .logout-btn,
    .logout-arrow {
        transition: none;
        animation: none;
    }
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
}

.quick-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--orange-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--orange-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.quick-action-btn:hover {
    background: var(--orange-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.action-icon.tracking {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.action-icon.services {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.quick-action-btn:hover .action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.quick-action-btn span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* Custom Dropdown Items */
.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--default-color);
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-item-custom:hover {
    background: var(--orange-light);
    color: var(--orange-primary);
}

.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-primary);
    transition: all 0.3s ease;
}

.dropdown-item-custom:hover .item-icon {
    background: var(--orange-primary);
    color: white;
}

.item-content {
    flex: 1;
}

.item-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.item-subtitle {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
}

/* Divider */
.dropdown-divider {
    margin: 0;
    border-top: 1px solid rgba(255, 140, 0, 0.1);
}

/* Logout Section */
.dropdown-footer {
    padding: 15px 20px;
    background: rgba(255, 140, 0, 0.05);
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 2px solid var(--orange-primary);
    border-radius: 12px;
    color: var(--orange-primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: var(--orange-gradient);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.logout-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.logout-btn:hover .logout-arrow {
    opacity: 1;
    transform: translateX(0);
}


@media (max-width: 767.98px) {
    .user-dropdown-menu {
        min-width: 260px;
        margin-top: 5px;
    }

    .quick-actions {
        flex-direction: column;
        gap: 8px;
    }

    .quick-action-btn {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 12px;
    }

    .action-icon {
        margin-bottom: 0;
    }
}

/* Animation Enhancement */
.user-dropdown-menu.show {
    animation: dropdownSlideIn 0.3s ease-out;
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===============================================
   SIMPLE MOBILE DROPDOWN FIX - TAMBAHKAN DI AKHIR FILE
   =============================================== */

/* Mobile Dropdown Position Fix */
@media (max-width: 767.98px) {
    /* Fix dropdown position untuk mobile */
    .user-dropdown-menu {
        position: fixed !important;
        top: 70px !important; /* Sesuaikan dengan tinggi header Anda */
        right: 10px !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
    }


    /* Prevent body scroll saat dropdown open */
    body.dropdown-open {
        overflow: hidden;
    }
}



/* ===============================================
   CARD COMPONENTS
   =============================================== */
.surat-card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    background: #ffffff;
    overflow: hidden;
    transition: var(--transition);
}

.surat-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.surat-card-header {
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    position: relative;
}

.surat-card-header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
}

.surat-card-body {
    padding: 1.5rem;
}

.surat-card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.surat-card-title i {
    color: var(--primary-color);
}

/* ===============================================
   BUTTON COMPONENTS
   =============================================== */
.btn-surat-primary {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-surat-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-surat-primary:hover::before {
    left: 100%;
}

.btn-surat-primary:hover {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary-color)
    );
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
    color: white;
    text-decoration: none;
}

/* ===============================================
   FILTER SECTION
   =============================================== */
.surat-filter-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, #f1f5f9 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.surat-search-box {
    position: relative;
    max-width: 350px;
}

.surat-search-box .form-control {
    padding-left: 3rem;
    padding-right: 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    height: 48px;
    font-size: 0.875rem;
    transition: var(--transition);
    background: #ffffff;
}

.surat-search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.surat-search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: var(--transition);
}

.surat-search-box .form-control:focus ~ .search-icon {
    color: var(--primary-color);
}

/* ===============================================
   TABLE COMPONENTS
   =============================================== */
.surat-table-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.surat-table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.surat-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-primary);
    border: none;
    padding: 1rem;
    position: relative;
}

.surat-table th::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
}

.surat-table td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
    transition: var(--transition);
}

.surat-table tbody tr {
    transition: var(--transition);
}

.surat-table tbody tr:hover {
    background: linear-gradient(
        135deg,
        rgba(67, 97, 238, 0.02) 0%,
        rgba(111, 66, 193, 0.02) 100%
    );
}

/* ===============================================
   ACTION BUTTONS
   =============================================== */
.surat-action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.surat-action-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.surat-action-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.surat-action-btn:hover::before {
    left: 100%;
}

.surat-action-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Detail Button */
.surat-action-btn--detail {
    background: linear-gradient(135deg, var(--info-color), #1e40af);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.surat-action-btn--detail:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Download Button */
.surat-action-btn--download {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.surat-action-btn--download:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

/* ===============================================
   TRACKING CODE COMPONENT
   =============================================== */
.surat-tracking-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.surat-tracking-code {
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.surat-copy-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
    color: var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.surat-copy-btn:hover {
    background: rgba(67, 97, 238, 0.2);
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.surat-copy-btn i {
    font-size: 0.875rem;
}

/* ===============================================
   EMPTY STATE
   =============================================== */
.surat-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.surat-empty-state .empty-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.surat-empty-state h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.surat-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===============================================
   STATUS BADGES
   =============================================== */
.surat-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.surat-status-badge--pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.surat-status-badge--approved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.surat-status-badge--rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 768px) {
    .surat-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .surat-search-box {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .surat-action-buttons {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
        width: 100%;
    }

    .surat-action-btn {
        width: 100%;
        height: 36px;
        border-radius: var(--border-radius-sm);
        font-size: 0.75rem;
        justify-content: flex-start;
        padding: 0 1rem;
    }

    .surat-action-btn i {
        margin-right: 0.5rem;
    }

    .surat-action-btn::after {
        content: attr(data-title);
        font-size: 0.75rem;
    }

    .surat-tracking-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
}

/* ===============================================
   PAGINATION STYLING
   =============================================== */
.surat-pagination .pagination {
    gap: 0.25rem;
}

.surat-pagination .page-item {
    margin: 0;
}

.surat-pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.surat-pagination .page-item.active .page-link {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.surat-pagination .page-link:hover {
    background: rgba(67, 97, 238, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===============================================
   LOADING STATES
   =============================================== */
.surat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.surat-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===============================================
   UTILITIES
   =============================================== */
.text-surat-primary {
    color: var(--primary-color) !important;
}
.text-surat-secondary {
    color: var(--text-secondary) !important;
}
.bg-surat-light {
    background-color: var(--light-gray) !important;
}

.surat-shadow {
    box-shadow: var(--box-shadow);
}
.surat-shadow-lg {
    box-shadow: var(--box-shadow-lg);
}

.surat-transition {
    transition: var(--transition);
}

/* ===============================================
   HOME PAGE CLEAN STYLES & FAQ ACCORDION FIX
   =============================================== */
.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    background: radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(67, 97, 238, 0.04) 0%, transparent 45%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 30px;
    color: var(--orange-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--orange-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 107, 53, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.hero-heading {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-heading .accent-text {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 40px;
}

.btn-hero-primary {
    background: var(--orange-gradient);
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.35);
}

.btn-hero-secondary {
    background: #ffffff;
    color: #1e293b !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-hero-secondary:hover {
    color: var(--orange-primary) !important;
    border-color: rgba(255, 107, 53, 0.3);
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-hero-link {
    color: #475569 !important;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-hero-link:hover {
    color: var(--orange-primary) !important;
    background: rgba(255, 107, 53, 0.06);
}

/* Trust Features Bar */
.hero-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
}

.hero-feature-item {
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
}

/* Floating Informative Info Badges */
.hero-float-badge {
    position: absolute;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 10px 16px;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-float-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(255, 107, 53, 0.12);
}

.float-badge-top {
    top: 5px;
    left: -10px;
}

.float-badge-bottom {
    bottom: 5px;
    right: -10px;
}

.float-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .float-badge-top, .float-badge-bottom {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 12px auto;
        display: inline-flex;
    }
}

.hero-img-container {
    position: relative;
    text-align: center;
}

.hero-img-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
}

.hero-img-card:hover {
    box-shadow: 0 25px 70px rgba(255, 107, 53, 0.12);
}

.hero-main-logo {
    width: 100%;
    max-width: 360px;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.hero-img-card:hover .hero-main-logo {
    transform: scale(1.02);
}

/* Metrics Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

.stat-card {
    background: #ffffff;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.08);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat-card-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

/* Section Title Styling */
.section-header-clean {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--orange-primary);
    background: rgba(255, 107, 53, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title-text {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* About Section Improvements */
.about-feature-box {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 12px;
    transition: transform 0.25s ease;
}

.about-feature-box:hover {
    transform: translateX(4px);
    border-color: rgba(255, 107, 53, 0.2);
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.12);
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Service Card Grid Clean Styling */
.services-section-clean {
    padding: 90px 0;
    background: #f8fafc;
}

.service-card-clean {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-clean:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.1);
}

.service-card-clean .icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(255, 140, 66, 0.06) 100%);
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card-clean:hover .icon-wrapper {
    background: var(--orange-gradient);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.service-card-clean h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.service-card-clean p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-clean .card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--orange-primary) !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    width: fit-content;
}

.service-card-clean .card-link i {
    transition: transform 0.3s ease;
    font-size: 0.95rem;
}

.service-card-clean:hover .card-link,
.service-card-clean .card-link:hover {
    background: var(--orange-gradient);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
}

.service-card-clean:hover .card-link i {
    transform: translateX(4px);
}

/* FAQ Section Improvements & Answer Text Fix */
.faq-section-clean {
    padding: 90px 0;
    background: #ffffff;
}

.faq-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-card-item:hover {
    border-color: rgba(255, 107, 53, 0.3);
}

.faq-header-btn {
    width: 100%;
    padding: 18px 22px;
    background: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a !important;
    cursor: pointer;
    gap: 16px;
    transition: background-color 0.2s ease;
}

.faq-header-btn:hover {
    background-color: #f8fafc;
}

.faq-header-btn .toggle-icon {
    font-size: 1rem;
    color: var(--orange-primary);
    transition: transform 0.3s ease;
}

.faq-header-btn:not(.collapsed) .toggle-icon {
    transform: rotate(90deg);
}

.faq-body-content {
    padding: 4px 22px 22px 22px;
    color: #334155 !important;
    font-size: 0.95rem;
    line-height: 1.65;
    background-color: #ffffff;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.faq-card-item .collapse.show .faq-body-content {
    color: #334155 !important;
}

/* ===============================================
   FLOATING HEADER CLEAN & FRESH STYLING
   =============================================== */
.header {
    background: transparent !important;
    padding: 18px 0 !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 997;
    border-bottom: none !important;
}

.header .header-container {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px !important;
    padding: 8px 24px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.35s ease;
}

.scrolled .header {
    padding: 10px 0 !important;
}

.scrolled .header .header-container {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12) !important;
    border-color: rgba(255, 107, 53, 0.25) !important;
}

.header .logo h1.sitename {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.3px;
    font-family: var(--heading-font, "Poppins", "Figtree", sans-serif);
}

.header .logo img {
    height: 40px;
    width: auto;
    transition: transform 0.25s ease;
}

.header .logo:hover img {
    transform: scale(1.05);
}

/* Nav Menu Enhancements */
.navmenu a, .navmenu a:focus {
    color: #334155 !important;
    font-weight: 500;
    transition: all 0.25s ease;
    padding: 8px 14px !important;
    border-radius: 20px;
}

.navmenu a:hover, .navmenu .active, .navmenu .active:focus {
    color: var(--orange-primary) !important;
    background: rgba(255, 107, 53, 0.08);
}

/* Mobile Navigation & Hamburger Toggle Enhancements */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-size: 24px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        margin-left: 8px !important;
        z-index: 9999 !important;
    }

    .mobile-nav-toggle:hover {
        background: #ffffff !important;
        border-color: rgba(255, 107, 53, 0.4) !important;
        color: var(--orange-primary) !important;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15) !important;
    }

    .mobile-nav-active {
        overflow: hidden !important;
    }

    /* Reset floating header container background and hide logo/auth elements when mobile nav overlay is active */
    .mobile-nav-active .header {
        padding: 0 !important;
        background: transparent !important;
    }

    .mobile-nav-active .header-container {
        background: transparent !important;
        box-shadow: none !important;
        border-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        transform: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .mobile-nav-active .header .logo,
    .mobile-nav-active .user-dropdown-wrapper,
    .mobile-nav-active .header-auth-btn {
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        transition: opacity 0.2s ease !important;
    }

    .mobile-nav-active .navmenu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(15, 23, 42, 0.75) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        z-index: 99998 !important;
        transition: all 0.3s ease !important;
    }

    .mobile-nav-active .navmenu > ul {
        display: block !important;
        position: fixed !important;
        top: 80px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-height: calc(100vh - 100px) !important;
        background: #ffffff !important;
        border-radius: 24px !important;
        padding: 18px 12px !important;
        margin: 0 !important;
        box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35) !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        overflow-y: auto !important;
        list-style: none !important;
        z-index: 99999 !important;
    }

    .mobile-nav-active .navmenu ul li {
        margin-bottom: 4px !important;
    }

    .mobile-nav-active .navmenu ul a {
        padding: 12px 18px !important;
        border-radius: 14px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        background: transparent !important;
    }

    .mobile-nav-active .navmenu ul a:hover,
    .mobile-nav-active .navmenu ul a.active {
        background: rgba(255, 107, 53, 0.08) !important;
        color: var(--orange-primary) !important;
        transform: translateX(4px) !important;
    }

    .mobile-nav-active .mobile-nav-toggle {
        position: fixed !important;
        top: 18px !important;
        right: 20px !important;
        z-index: 100000 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        border-color: rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2) !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 26px !important;
    }
}

/* ===============================================
   SERVICES PAGE CLEAN STYLES
   =============================================== */
.services-hero-banner {
    position: relative;
    padding: 130px 0 50px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}

.services-hero-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.services-hero-banner .hero-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 1.8rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.search-input-group {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
}

.search-input-group input {
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.95rem 3.5rem 0.95rem 1.5rem;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #0f172a;
}

.search-input-group input:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
    outline: none;
    background: #ffffff;
}

.search-input-group input::placeholder {
    color: #94a3b8;
}

.btn-reset {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 3;
    font-size: 16px;
}

.btn-reset:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.search-results-info {
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 14px;
    padding: 0.9rem 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #334155;
    font-size: 0.95rem;
}

.search-results-info i {
    color: var(--orange-primary);
    font-size: 1.25rem;
}

.search-results-info .search-term {
    color: var(--orange-primary);
    font-weight: 700;
}

/* Enhanced Services Grid & Card Component */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.1);
}

.service-card .icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(255, 140, 66, 0.06) 100%);
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    background: var(--orange-gradient);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card .read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--orange-primary) !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    width: fit-content;
}

.service-card .read-more i {
    transition: transform 0.3s ease;
    font-size: 0.95rem;
}

.service-card .read-more:hover,
.service-card:hover .read-more {
    background: var(--orange-gradient);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
}

.service-card:hover .read-more i {
    transform: translateX(4px);
}

/* Enhanced Empty State */
.services-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 2px dashed rgba(226, 232, 240, 0.9);
    margin: 2rem 0;
}

.services-empty-state i {
    font-size: 3.5rem;
    color: rgba(255, 107, 53, 0.3);
    margin-bottom: 1.2rem;
}

.services-empty-state h4 {
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.services-empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.services-pagination {
    margin-top: 3rem;
}

.services-pagination .pagination {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.services-pagination .page-link {
    border: none;
    padding: 0.75rem 1.1rem;
    color: #334155;
    background: #ffffff;
    transition: all 0.3s ease;
}

.services-pagination .page-link:hover {
    color: #ffffff;
    background: var(--orange-primary);
}

.services-pagination .page-item.active .page-link {
    background: var(--orange-gradient);
    color: #ffffff;
}




