:root {
    --primary-color: #002147;
    --primary-light: #003a7a;
    --accent-color: #005b99;
    --accent-hover: #004a7c;
    --bg-gradient: linear-gradient(135deg, #002147 0%, #005b99 100%);
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-on-dark: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: #f4f7f9;
}

/* Auth Pages Styling (Identity/Index) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-gradient);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    top: -50%;
    left: -50%;
}

.auth-card {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.brand-section {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-section h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.brand-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Tabs Styling */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #eef2f6;
    padding: 4px;
    border-radius: var(--radius-md);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modern-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.modern-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 91, 153, 0.1);
}

.btn-premium {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-premium:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 91, 153, 0.25);
}

/* Footer / Links */
.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Navbar Modernization */
.navbar-modern {
    background: var(--primary-color) !important;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-soft);
}

.navbar-modern .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-modern .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Status Badges */
.badge-modern {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* File Explorer Styling (User Page) — Light Theme */
.explorer-container {
    display: flex;
    height: calc(100vh - 64px);
    background-color: #f0f4f8;
    color: #1e293b;
}

.explorer-sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}

.explorer-main {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.explorer-toolbar {
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.explorer-breadcrumb {
    padding: 0.5rem 1.5rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.breadcrumb-item {
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #1e40af;
}

.breadcrumb-separator {
    color: #cbd5e1;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th {
    text-align: left;
    padding: 0.75rem 1.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    background-color: #f8fafc;
}

.file-table tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
    cursor: pointer;
}

.file-table tr:hover {
    background-color: #f0f4f8;
}

.file-table td {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    vertical-align: middle;
    color: #1e293b;
}

.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    opacity: 0.8;
}

.file-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
}

.action-menu-btn {
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.action-menu-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Specific Dropdown Style for New Menu */
.btn-new {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    transition: all 0.2s;
}

.btn-new:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* New button dropdown - white style */
.dropdown-menu-dark {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 180px;
}

.dropdown-menu-dark .dropdown-item {
    color: #334155;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-menu-dark .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.dropdown-menu-dark .dropdown-divider {
    border-top: 1px solid #e2e8f0;
}

/* Uploading Progress Bar (Subtle) */
.upload-progress {
    height: 3px;
    background-color: #3b82f6;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    transition: width 0.3s;
}