/* Dashboard Styles - Matching Login Page Design */

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

/* Sidebar navigation hover effect */
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.nav-link.active-nav {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-left-color: #3b82f6 !important;
    color: white !important;
    font-weight: 500;
}

/* Custom spacing for dashboard */
.min-vh-100 {
    min-height: 100vh;
}

/* Ensure sidebar doesn't shrink */
aside {
    flex-shrink: 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    font-weight: 600;
    color: #111827;
    border-radius: 8px 8px 0 0;
}

.card-body {
    padding: 20px;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #1e40af;
    border-color: #1e40af;
}

.btn-primary:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
}

.btn-outline-primary {
    border-color: #1e40af;
    color: #1e40af;
}

.btn-outline-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: white;
}

.btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

/* Form Controls */
.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #111827;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Tables */
.table {
    background-color: white;
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px;
}

.table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
}

.bg-success {
    background-color: #10b981 !important;
}

.bg-danger {
    background-color: #ef4444 !important;
}

.bg-warning {
    background-color: #f59e0b !important;
}

.bg-info {
    background-color: #3b82f6 !important;
}

.bg-primary {
    background-color: #1e40af !important;
}

.bg-secondary {
    background-color: #6b7280 !important;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
    padding: 12px 16px;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Pagination */
.pagination .page-link {
    color: #1e40af;
    border-color: #d1d5db;
    border-radius: 6px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #1e40af;
    border-color: #1e40af;
}

.pagination .page-link:hover {
    background-color: #eff6ff;
    border-color: #1e40af;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 600;
}

h1.h3, h3 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Stats Cards */
.stats-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-card .card-subtitle {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stats-card .card-title {
    font-size: 32px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Code blocks */
code {
    background-color: #f3f4f6;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

#notification-container .alert {
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    border-radius: 6px;
}
