/* ==============================================
   VARIABLES & RESET
   ============================================== */
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --success: #4ade80;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --sidebar-width: 16rem;
    --topbar-height: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    overflow-x: hidden;
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */
.hidden {
    display: none !important;
}

/* ==============================================
   AUTHENTICATION STYLES
   ============================================== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.auth-card {
    background-color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 28rem;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background-color: var(--gray-100);
    padding: 0.25rem;
    margin: 0 1.5rem;
    border-radius: var(--radius);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
    color: var(--gray-600);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background-color: white;
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.auth-form {
    padding: 1.5rem;
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-primary-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-bottom: 1.5rem;
}

.auth-primary-btn:hover {
    opacity: 0.9;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--gray-200);
}

.divider span {
    padding: 0 1rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background-color: white;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: var(--gray-50);
}

.social-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.google-btn:hover {
    border-color: #db4437;
}

.github-btn {
    background-color: var(--gray-800);
    color: white;
    border-color: var(--gray-800);
}

.github-btn:hover {
    background-color: var(--gray-900);
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    background-color: var(--gray-200);
    transition: all 0.3s ease;
}

.password-strength.weak {
    background-color: var(--danger);
    width: 25%;
}

.password-strength.fair {
    background-color: var(--warning);
    width: 50%;
}

.password-strength.strong {
    background-color: var(--success);
    width: 75%;
}

.password-strength.very-strong {
    background-color: var(--success);
    width: 100%;
}

.auth-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.auth-switch {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 1.5rem;
}

.auth-switch-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.auth-switch-btn:hover {
    text-decoration: underline;
}

.link {
    color: var(--primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* ==============================================
   SIDEBAR STYLES
   ============================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: white;
    box-shadow: var(--shadow-xl);
    z-index: 40;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.logo-icon i {
    color: white;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.user-profile {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.user-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.user-info {
    margin-bottom: 1rem;
}

.user-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.storage-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.storage-label {
    color: var(--gray-600);
}

.storage-percent {
    font-weight: 500;
    color: var(--gray-700);
}

.storage-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--gray-200);
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.storage-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 9999px;
    transition: width 0.3s ease;
    width: 0%;
}

.storage-text {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

.nav-item.active {
    background-color: var(--primary);
    color: white;
}

.nav-item i {
    width: 1.5rem;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.nav-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: 1rem 0;
}

.upgrade-banner {
    margin: 1rem;
    padding: 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    color: white;
}

.upgrade-banner h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.upgrade-banner p {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.upgrade-btn {
    width: 100%;
    background-color: white;
    color: var(--primary);
    padding: 0.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.75rem;
}

.upgrade-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ==============================================
   MAIN CONTENT STYLES
   ============================================== */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

@media (min-width: 1024px) {
    .sidebar:not(.hidden) ~ .main-content {
        margin-left: var(--sidebar-width);
    }
}

.top-bar {
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--topbar-height);
}

.top-bar-content {
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 32rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.875rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-size: 0.875rem;
}

.upload-btn:hover {
    opacity: 0.9;
}

.upload-btn i {
    margin-right: 0.5rem;
}

.notification-btn-container {
    position: relative;
}

.notification-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--gray-100);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-btn:hover {
    background-color: var(--gray-200);
}

.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--danger);
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-actions-container {
    position: relative;
}

.quick-actions-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--gray-100);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quick-actions-btn:hover {
    background-color: var(--gray-200);
}

.quick-actions-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    z-index: 10;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.action-item:hover {
    background-color: var(--gray-100);
}

.action-item i {
    width: 1.25rem;
    margin-right: 0.75rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.action-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: 0.25rem 0;
    border: none;
}

.main-container {
    flex: 1;
    padding: 1.5rem;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

/* ==============================================
   DASHBOARD STYLES
   ============================================== */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .banner-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.greeting-text {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-subtext {
    opacity: 0.9;
    font-size: 1rem;
}

.banner-upload-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.banner-upload-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.banner-upload-btn i {
    margin-right: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background-color: rgba(67, 97, 238, 0.1);
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-800);
}

.quick-actions-section {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .action-buttons-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.action-btn:hover {
    background-color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.action-btn:hover i {
    color: var(--primary);
}

.recent-files-section {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

.recent-files-container {
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-files-container .empty-state {
    text-align: center;
    color: var(--gray-500);
}

.recent-files-container .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

/* ==============================================
   FILES VIEW STYLES
   ============================================== */
.files-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .files-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.files-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-800);
}

.files-subtitle {
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.files-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.view-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background-color: white;
    color: var(--gray-700);
    outline: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.primary-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-size: 0.875rem;
}

.primary-btn:hover {
    opacity: 0.9;
}

.primary-btn i {
    margin-right: 0.5rem;
}

.secondary-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.secondary-btn:hover {
    background-color: var(--gray-200);
}

.secondary-btn i {
    margin-right: 0.5rem;
}

.bulk-actions-bar {
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.bulk-actions-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .bulk-actions-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.selected-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.selected-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.selected-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.875rem;
}

.selected-subtitle {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.bulk-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bulk-action-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.bulk-action-btn:hover {
    background-color: var(--gray-50);
}

.bulk-action-btn.delete {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.bulk-action-btn.delete:hover {
    background-color: rgba(239, 68, 68, 0.05);
}

.bulk-action-btn.cancel {
    color: var(--gray-600);
    border-color: var(--gray-300);
}

.bulk-action-btn i {
    margin-right: 0.5rem;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    min-height: 20rem;
}

@media (min-width: 640px) {
    .files-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .files-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.file-card {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    grid-column: 1 / -1;
}

.empty-state-icon {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(58, 12, 163, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.empty-state-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    max-width: 28rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ==============================================
   MODAL STYLES
   ============================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.modal-container {
    background-color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 48rem;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 5rem);
}

.upload-dropzone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-dropzone.dragover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(58, 12, 163, 0.1) 100%);
}

.upload-dropzone i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.upload-dropzone h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.upload-dropzone p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.upload-browse-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-size: 0.875rem;
}

.upload-browse-btn:hover {
    opacity: 0.9;
}

.upload-browse-btn i {
    margin-right: 0.5rem;
    color: white;
    font-size: 1rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 1rem;
}

.upload-options {
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.options-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.option-checkbox {
    display: flex;
    align-items: center;
    color: var(--gray-700);
    cursor: pointer;
    font-size: 0.875rem;
}

.option-checkbox input {
    margin-right: 0.75rem;
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    cursor: pointer;
}

.upload-queue {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-queue-item {
    background-color: var(--gray-50);
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ==============================================
   FOOTER STYLES
   ============================================== */
.footer {
    border-top: 1px solid var(--gray-200);
    background-color: white;
    padding: 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logo-icon-small {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.logo-icon-small i {
    color: white;
    font-size: 0.875rem;
}

.footer-logo-text {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.875rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--gray-700);
}

/* ==============================================
   RESPONSIVE STYLES
   ============================================== */
@media (max-width: 640px) {
    .top-bar-content {
        padding: 0 1rem;
    }
    
    .search-container {
        display: none;
    }
    
    .files-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .bulk-action-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .upload-dropzone {
        padding: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .welcome-banner {
        padding: 1.5rem;
    }
    
    .greeting-text {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* ==============================================
   SCROLLBAR STYLING
   ============================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}