/* users/assets/css/secure-main.css - Main Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Edu+SA+Hand:wght@400..700&family=Exo:ital,wght@0,100..900;1,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/* Global Font Application */
a, p, h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo', sans-serif !important;
}

body {
    font-family: 'Exo', 'sans-serif', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dark body {
    background-color: rgba(15, 23, 42, 1);
}

.purple__color {
    color:  #843dff;
}
.purple__color__hover:hover {
    color:  #843dff;
}
.purple__bg {
    background:  #843dff;
}
.purple__bg__hover:hover {
    background:  #843dff;
}

/* Glass Morphism Effects */
.glass-morphism {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.75));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dark .glass-morphism {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/* Navbar Styling */
#main-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 4rem;
    min-height: 4rem;
    max-height: 4rem;
}

.navbar-blur {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .navbar-blur {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Navigation Links */
.nav-link-modern {
    position: relative;
    white-space: nowrap;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-modern span {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0;
}

.nav-link-modern:hover span,
.nav-link-modern.active span {
    max-width: 120px;
    opacity: 1;
    margin-left: 0.45rem;
}

.nav-link-modern .lucide {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.nav-link-modern::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    /* background: linear-gradient(90deg, #843dff, #49789f); */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link-modern:hover {
    background: rgba(73, 120, 159, 0.08);
    color: #49789f;
}

.dark .nav-link-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #dac9f3;
}

.nav-link-modern:hover::before {
    width: 100%;
}

.nav-link-modern.active {
    color: #49789f;
    background: rgba(73, 120, 159, 0.1);
}

.dark .nav-link-modern.active {
    color: #dac9f3;
    background: rgba(255, 255, 255, 0.08);
}

/* Dropdown Menus */
.dropdown-modern {
    position: absolute;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .dropdown-modern {
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Notification and Profile Dropdowns */
div[x-data*="showNotifications"] .dropdown-modern,
div[x-data*="showProfile"] .dropdown-modern {
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    transform: none;
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

#mobile-menu .glass-morphism {
    position: relative;
    z-index: 95;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.dark #mobile-menu .glass-morphism {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Hamburger Menu */
#mobile-menu-btn {
    position: relative;
    z-index: 101;
}

.hamburger-menu {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 102;
}

.hamburger-line {
    display: block;
    height: 3px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 0; }

.hamburger-menu.open .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Body Effects */
body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .main-content {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

/* Profile Avatar */
.profile-avatar {
    background: linear-gradient(135deg, #843dff, #49789f);
    position: relative;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #843dff, #49789f, #2c9ca7);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar:hover::after {
    opacity: 1;
}

/* Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #843dff, #49789f, #2c9ca7);
    transition: width 0.3s ease;
    z-index: 105;
}

/* Interactive Elements */
.search-glow:focus-within {
    box-shadow: 0 0 0 3px rgba(132, 61, 255, 0.1);
}

.user-status-online {
    background: #10b981;
    box-shadow: 0 0 0 2px white, 0 0 10px rgba(16, 185, 129, 0.5);
}

.dark .user-status-online {
    box-shadow: 0 0 0 2px rgb(15 23 42), 0 0 10px rgba(16, 185, 129, 0.5);
}

.notification-badge {
    animation: pulse 2s infinite;
}

/* Footer Styling */
footer {
    background: linear-gradient(to top, #f9fafb, #ffffff);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.dark footer {
    background: linear-gradient(to top, #1e293b, #0f172a);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-link {
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 61, 255, 0.3);
}

.footer-link:focus {
    outline: 2px solid #843dff;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Utility Classes */
.relative {
    position: relative;
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
}

.loaded {
    animation: fadeIn 0.5s ease-out;
}

/* Lucide Icon Sizing */
.lucide {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.text-truncate-mobile {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes countUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    #main-navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #main-navbar .text-lg {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    #mobile-menu .glass-morphism {
        margin: 1rem;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
    }
    
    .text-truncate-mobile {
        max-width: 8ch;
    }
    
    /* Footer mobile adjustments */
    footer .max-w-7xl {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    footer .lg\:col-span-2 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .lg\:col-span-2 p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    footer .lg\:col-span-2 .flex.space-x-4 {
        justify-content: center;
    }
    
    footer .grid-cols-3.gap-4 {
        gap: 0.75rem;
    }
    
    footer .grid-cols-3 .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    footer .grid-cols-3 .text-xs {
        font-size: 0.625rem;
    }
}

@media (max-width: 375px) {
    #main-navbar .hidden.xs\:block {
        display: none !important;
    }
}

/* Mobile Footer Links */
@media (max-width: 767px) {
    .footer-links-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .footer-links-mobile h3 {
        font-size: 0.975rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: #111827;
    }
    
    .dark .footer-links-mobile h3 {
        color: #ffffff;
    }
    
    .footer-links-mobile ul {
        space-y: 0.5rem;
    }
    
    .footer-links-mobile a {
        font-size: 0.75rem;
        line-height: 1.25rem;
        display: block;
        padding: 0.25rem 0;
        color: #6b7280;
        transition: color 0.2s ease;
    }
    
    .dark .footer-links-mobile a {
        color: #9ca3af;
    }
    
    .footer-links-mobile a:hover {
        color: #843dff;
    }
    
    .dark .footer-links-mobile a:hover {
        color: #a78bfa;
    }
    
    .footer-links-mobile i {
        opacity: 0;
        transition: opacity 0.2s ease;
        font-size: 0.625rem;
    }
    
    .footer-links-mobile a:hover i {
        opacity: 1;
    }
    
    .footer-contact-mobile {
        margin-top: 1.5rem;
        border-top: 1px solid rgba(229, 231, 235, 0.5);
        padding-top: 1.5rem;
    }
    
    .dark .footer-contact-mobile {
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .footer-contact-mobile ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-contact-mobile li {
        display: flex;
        align-items: flex-start;
    }
    
    .footer-contact-mobile .w-8.h-8 {
        width: 2rem;
        height: 2rem;
        flex-shrink: 0;
    }
    
    .footer-bottom-mobile {
        margin-top: 2rem;
        padding-top: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-mobile .flex.flex-col {
        space-y: 1rem;
    }
    
    .footer-legal-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .footer-legal-links a {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .footer-right-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-right-info > div {
        flex-direction: column;
        align-items: center;
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-links-tablet {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-links-tablet h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links-tablet a {
        font-size: 0.875rem;
    }
    
    .footer-links-tablet i {
        opacity: 0.7;
    }
    
    .footer-links-tablet a:hover i {
        opacity: 1;
    }
}

/* Desktop Layout */
@media (min-width: 1024px) {
    footer .lg\:col-span-3 .grid-cols-3 {
        gap: 3rem;
    }
    
    footer .lg\:col-span-3 h3 {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    footer .lg\:col-span-3 a {
        font-size: 0.875rem;
    }
    
    footer .lg\:col-span-3 i {
        opacity: 0.7;
        transition: opacity 0.2s ease;
    }
    
    footer .lg\:col-span-3 a:hover i {
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    footer {
        display: none;
    }
}