:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #3f37c9;
    --success-color: #38b2ac;
    --warning-color: #ed64a6;
    --info-color: #4299e1;
    --light-color: #f8f9fa;
    --dark-color: #1a202c;
    --gray-100: #f8f9fa;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-800: #2d3748;
    --body-bg: #f8fafc;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
    --border-radius: 10px;
    --font-heading: 'Inter', 'Poppins', sans-serif;
    --font-body: 'Inter', 'Poppins', sans-serif;
}

body {
    background-color: var(--body-bg);
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Modern Navbar */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--gray-100) !important;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.navbar-dark {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.nav-link {
    font-weight: 600;
    transition: all var(--transition-speed);
    padding: 0.6rem 1.2rem;
    color: white !important;
    margin: 0 0.2rem;
}

.nav-link:hover {
    color: var(--gray-300) !important;
}

.navbar-dark .nav-link {
    color: white !important;
}
.navbar-dark .nav-link:hover {
    color: var(--gray-500) !important;
}

/* Container spacing */
.container {
    padding: 2rem 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: var(--dark-color);
}

/* Card styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: white;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.card-body {
    padding: 1.75rem;
}

/* Button styles */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Google button custom style */
.google-btn {
    background-color: transparent !important;
    color: white !important;
    border: none !important;
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.google-btn:hover {
    color: var(--gray-300) !important;
}

.google-btn i {
    color: #4285F4;
    margin-right: 12px;
    font-size: 20px;
}

/* Table styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: white;
}

.table th {
    background-color: var(--gray-100);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    border-top: none;
    padding: 1.25rem 1rem;
    color: var(--gray-800);
}

.table td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--gray-200);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.01);
}

.table-hover tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.03);
}

/* Avatar styles */
.avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Form controls */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--gray-300);
    transition: all var(--transition-speed);
    font-size: 1rem;
    background-color: white;
}

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

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    padding-left: 4rem;
}

.alert::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.alert-success {
    background-color: rgba(56, 178, 172, 0.1);
    color: var(--success-color);
}

.alert-success::before {
    content: '\f058';
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(237, 100, 166, 0.1);
    color: var(--warning-color);
}

.alert-danger::before {
    content: '\f06a';
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--info-color);
}

.alert-info::before {
    content: '\f05a';
    color: var(--info-color);
}

/* Badge styles */
.badge {
    font-weight: 600;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.badge-primary {
    background-color: rgba(67, 97, 238, 0.12);
    color: var(--primary-color);
}

.badge-success {
    background-color: rgba(56, 178, 172, 0.12);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(237, 100, 166, 0.12);
    color: var(--warning-color);
}

.badge-info {
    background-color: rgba(66, 153, 225, 0.12);
    color: var(--info-color);
}

/* File upload component */
.custom-file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    background-color: var(--gray-100);
}

.custom-file-upload:hover {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.03);
}

.custom-file-upload i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

/* File list styles */
.file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: white;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
}

.file-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.file-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.file-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.file-details {
    flex: 1;
}

.file-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.file-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
}

.file-meta span {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.file-meta i {
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

/* Loading and spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    animation: spin 1s infinite linear;
}

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

/* Page transitions */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .card-header {
        padding: 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
    }
    
    .table th,
    .table td {
        padding: 1rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
