

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    color: #1a1a2e;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    animation: fadeInBody 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: floatingBg 20s ease-in-out infinite;
}

@keyframes floatingBg {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes fadeInBody {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


h1, h2, h3, h4 {
    color: #2d3748;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 12px rgba(45, 55, 72, 0.15);
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: expandLine 1s ease 0.5s both;
}

@keyframes slideDown {
    from { transform: translateY(-40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 60px; }
}


nav.custom-navbar {
    border-radius: 25px;
    backdrop-filter: blur(25px) saturate(180%);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    margin: 1rem 0 2rem 0;
    animation: fadeInNav 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1rem 2rem;
    position: sticky;
    top: 1rem;
    z-index: 1000;
    overflow: hidden;
}

nav.custom-navbar::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.6s ease;
}

nav.custom-navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent);
}

nav.custom-navbar:hover::before {
    left: 100%;
}

nav.custom-navbar:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(31, 38, 135, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.custom-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-navbar .navbar-brand:hover {
    color: #fff !important;
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.custom-navbar .navbar-brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-navbar .navbar-brand:hover img {
    transform: rotate(-5deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.custom-navbar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 16px;
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.custom-navbar .nav-link:hover, .custom-navbar .nav-link.active {
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.custom-navbar .nav-link:hover::before {
    width: 100%;
}

.custom-navbar .nav-link:hover::after {
    width: 80%;
}

.custom-navbar .nav-link:active {
    transform: translateY(0) scale(0.98);
}

.custom-navbar .nav-link i {
    font-size: 1.15em;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.custom-navbar .nav-link:hover i {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Mobile navbar toggle button */
.custom-navbar .navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.custom-navbar .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar collapse animation */
.custom-navbar .navbar-collapse {
    border-radius: 16px;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991.98px) {
    .custom-navbar .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .custom-navbar {
        padding: 1rem 1.5rem;
    }
}

@keyframes fadeInNav {
    from { 
        opacity: 0; 
        transform: translateY(-40px) scale(0.9) rotateX(15deg); 
        filter: blur(15px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotateX(0deg); 
        filter: blur(0);
    }
}

/* Navbar brand text animation */
@keyframes brandGlow {
    0%, 100% { text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); }
    50% { text-shadow: 0 2px 25px rgba(102, 126, 234, 0.4); }
}

.custom-navbar .navbar-brand {
    animation: brandGlow 3s ease-in-out infinite;
}


.navbar-brand {
    font-weight: 700;
    color: #4f46e5 !important;
    letter-spacing: 1px;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(102,166,255,0.15);
    transition: color 0.2s;
}


.navbar-nav .nav-link {
    color: #22223b !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.2s, transform 0.2s;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #4f46e5;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -2px;
}
.navbar-nav .nav-link:hover {
    color: #4f46e5 !important;
    transform: translateY(-2px) scale(1.05);
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.card {
    border: none;
    border-radius: 24px;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInCard 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.card:hover {
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.5);
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.35);
}

@keyframes fadeInCard {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0);
    }
}

.card-body {
    text-align: center;
    padding: 2rem 1.5rem;
    animation: fadeInCard 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4f46e5;
    letter-spacing: 0.2px;
}
.card-img-top {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 8px;
}

.card:hover .card-img-top {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}
.card-body .btn {
    font-size: 1.05rem;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    background: linear-gradient(90deg, #4f46e5 0%, #6dd5ed 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(102,166,255,0.10);
    transition: background 0.2s, transform 0.2s;
    font-weight: 600;
}
.card-body .btn:hover {
    background: linear-gradient(90deg, #3730a3 0%, #2193b0 100%);
    transform: scale(1.06);
}


form {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    margin-bottom: 2rem;
    animation: fadeInCard 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
input[type="text"], input[type="password"], input[type="email"], input[type="file"], textarea {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

input::placeholder, textarea::placeholder {
    color: rgba(45, 55, 72, 0.6);
}

input:focus, textarea:focus {
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
button, .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

button::before, .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;
}

button:hover, .btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

button:hover::before, .btn:hover::before {
    left: 100%;
}

button:active, .btn:active {
    transform: translateY(-1px) scale(1.02);
}


.container {
    max-width: 950px;
    margin: 0 auto;
    padding-top: 2.5rem;
    animation: fadeInBody 1.2s cubic-bezier(.77,0,.18,1);
}


footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4rem;
    font-size: 0.95rem;
    padding: 2rem 0;
    letter-spacing: 0.5px;
    animation: fadeInFooter 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInFooter {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
        filter: blur(5px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
        filter: blur(0);
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Alert Styles */
.alert {
    border: none;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInAlert 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-success {
    background: rgba(72, 187, 120, 0.2);
    color: #2f855a;
}

.alert-danger {
    background: rgba(245, 101, 101, 0.2);
    color: #c53030;
}

.alert-info {
    background: rgba(66, 153, 225, 0.2);
    color: #2c5282;
}

@keyframes slideInAlert {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* File Grid Enhancements */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.file-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInCard 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.file-card:hover::before {
    transform: scaleX(1);
}

.file-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.file-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.file-card:hover .file-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Button Group Styles */
.btn-group-custom {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-sm-custom {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 12px;
    font-weight: 500;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    nav.custom-navbar {
        border-radius: 16px;
        margin: 1rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    form {
        padding: 2rem 1.5rem;
    }
    
    .file-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #2d3748;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Pulse Animation for Important Elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Stagger Animation for Lists */
.stagger-item {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Authentication Pages */
.auth-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    animation: fadeInCard 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-icon i {
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: pulse 2s infinite;
}

.auth-header h2 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.7);
}

.form-floating {
    position: relative;
}

.form-floating > .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    height: auto;
}

.form-floating > .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.form-floating > label {
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.25rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.auth-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #fff;
    text-decoration: underline;
}

.security-features {
    max-width: 420px;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-card i {
    font-size: 1.5rem;
}

.feature-card small {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Password Strength Indicator */
.password-strength {
    margin-bottom: 1rem;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background: #ef4444;
}

.strength-fill.medium {
    background: #f59e0b;
}

.strength-fill.strong {
    background: #10b981;
}

.strength-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Upload Enhancements */
.hero-icons {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature-icon:nth-child(1) { animation-delay: 0.1s; }
.feature-icon:nth-child(2) { animation-delay: 0.2s; }
.feature-icon:nth-child(3) { animation-delay: 0.3s; }

.feature-icon:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-icon small {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.75rem;
}

.upload-card {
    animation: fadeInCard 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-icon i {
    color: rgba(255, 255, 255, 0.6);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area.drag-over {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.upload-content {
    transition: all 0.3s ease;
}

.file-info {
    animation: slideInUp 0.3s ease;
}

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

/* Files Page Enhancements */
.stats-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    animation: fadeInCard 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-item small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.empty-state {
    animation: fadeInCard 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-icon i {
    color: rgba(255, 255, 255, 0.4);
    animation: pulse 2s infinite;
}

.empty-state h4 {
    color: rgba(255, 255, 255, 0.9);
}

.empty-state p {
    color: rgba(255, 255, 255, 0.7);
}

/* Error Pages */
.error-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.error-animation {
    position: relative;
    animation: fadeInCard 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.error-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bounce 2s infinite;
}

.error-icon i {
    color: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.error-code h1 {
    font-size: 8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -50%) translateY(0); }
    40% { transform: translate(-50%, -50%) translateY(-10px); }
    60% { transform: translate(-50%, -50%) translateY(-5px); }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)); }
}

.error-content h2 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.error-content p {
    color: rgba(255, 255, 255, 0.7);
}

.suggestion-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.suggestion-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.suggestion-card i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.suggestion-card span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.suggestion-list {
    text-align: left;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.suggestion-item i {
    font-size: 1.25rem;
}

.suggestion-item span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.error-actions {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* Modal Enhancements */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
        padding: 2rem;
    }
    
    .hero-icons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-icon {
        flex-direction: row;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .error-code h1 {
        font-size: 4rem;
    }
    
    .suggestion-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .suggestion-card {
        width: 100%;
        max-width: 200px;
    }
}