:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-weight: 300;
    font-size: 2.5rem;
}

.header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.content {
    padding: 2rem;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background: var(--light-bg);
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
    color: var(--primary-color);
}

.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

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

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

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
}

.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background: var(--light-bg);
    border: none;
    font-weight: 600;
    color: var(--primary-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.status-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.status-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.file-download {
    background: var(--light-bg);
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-download:hover {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
}

.file-download a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.file-download a:hover {
    color: #2980b9;
}

.alert {
    border-radius: 10px;
    border: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    color: white;
    min-height: calc(100vh - 4rem);
    padding: 0;
    border-radius: 20px 0 0 20px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h5 {
    margin: 0;
    font-weight: 600;
    color: white;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sidebar-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar-menu-item.active {
    background: rgba(52, 152, 219, 0.3);
    color: white;
    border-right: 3px solid var(--secondary-color);
}

.sidebar-menu-item i {
    width: 20px;
    margin-right: 10px;
}

.sidebar-menu-item.active i {
    color: var(--secondary-color);
}

.main-content {
    background: white;
    border-radius: 0 20px 20px 0;
    min-height: calc(100vh - 4rem);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        border-radius: 20px 20px 0 0;
        min-height: auto;
    }

    .main-content {
        border-radius: 0 0 20px 20px;
        min-height: auto;
    }
}
