/* Main Styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
    --sidebar-bg: #4e73df;
    --sidebar-text: #ffffff;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(180deg, var(--primary-color) 10%, #224abe 100%);
    color: var(--sidebar-text);
    min-height: 100vh;
    padding: 0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.35rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Main Content Styles */
.main-content {
    padding: 0;
    background-color: #f8f9fc;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.card-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Stat Card Styles */
.stat-card {
    border-left: 0.25rem solid var(--primary-color);
    transition: transform 0.2s;
}

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

.stat-card:nth-child(1) {
    border-left-color: var(--primary-color);
}

.stat-card:nth-child(2) {
    border-left-color: var(--warning-color);
}

.stat-card:nth-child(3) {
    border-left-color: var(--secondary-color);
}

.stat-card .card-title {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-card .card-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-card .stat-icon {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    opacity: 0.3;
}

/* Table Styles */
.table {
    color: var(--dark-color);
}

.table thead th {
    background-color: #f8f9fc;
    border-top: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--dark-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2e59d9;
}

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

.btn-success:hover {
    background-color: #17a673;
    border-color: #17a673;
}

/* Progress Bar Styles */
.progress {
    height: 0.8rem;
    border-radius: 0.35rem;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Status Colors */
.status-working {
    color: var(--secondary-color);
    font-weight: 600;
}

.status-not-working {
    color: var(--danger-color);
    font-weight: 600;
}

.status-redirected {
    color: var(--warning-color);
    font-weight: 600;
}

.status-processing {
    color: var(--info-color);
    font-weight: 600;
}

.status-completed {
    color: var(--secondary-color);
    font-weight: 600;
}

.status-uploaded {
    color: var(--primary-color);
    font-weight: 600;
}

.status-working-protected {
    color: #4caf50;
    font-weight: 600;
    text-decoration: underline dotted;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .stat-card .stat-icon {
        display: none;
    }
}
