/* ============================================
   Auto Reporter - Styles
   ============================================ */

/* Sidebar */
.sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #1e293b;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #3b82f6;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Sidebar Toggle */
.sidebar-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    display: none;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.stat-card {
    border-left: 4px solid;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table {
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom-width: 2px;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Forms */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

/* Modals */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Toast notifications */
.toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.toast-success {
    border-left: 4px solid #198754;
}

.toast.toast-error {
    border-left: 4px solid #dc3545;
}

.toast.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast.toast-info {
    border-left: 4px solid #0dcaf0;
}

/* Status badges */
.badge-status-missing {
    background-color: #dc3545;
    color: #fff;
}

.badge-status-draft {
    background-color: #6c757d;
    color: #fff;
}

.badge-status-ready {
    background-color: #ffc107;
    color: #212529;
}

.badge-status-sent {
    background-color: #198754;
    color: #fff;
}

.badge-status-error {
    background-color: #dc3545;
    color: #fff;
}

.badge-status-accepted {
    background-color: #198754;
    color: #fff;
}

/* Role badges */
.bg-purple {
    background-color: #7c3aed !important;
    color: #fff;
}

.badge-role-admin {
    background-color: #7c3aed;
    color: #fff;
}

.badge-role-reporter {
    background-color: #3b82f6;
    color: #fff;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.login-card .card-header {
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Page header */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.page-header h2 {
    font-weight: 700;
    margin-bottom: 0;
}

/* Action buttons */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}
