/* Original Design with Font Awesome Icons */

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f8f9fa;
}

/* Dark Mode */
.dark {
    background-color: #1a1a1a !important;
    color: #f3f4f6 !important;
}

.dark body {
    background-color: #1a1a1a !important;
    color: #f3f4f6 !important;
}

.dark .card {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #f3f4f6 !important;
}

.dark .table {
    background-color: #2d2d2d !important;
    color: #f3f4f6 !important;
}

.dark .table th {
    background-color: #3a3a3a !important;
    border-color: #404040 !important;
    color: #f3f4f6 !important;
}

.dark .table td {
    border-color: #404040 !important;
    color: #f3f4f6 !important;
}

.dark .btn-primary {
    background-color: #059669 !important;
    border-color: #059669 !important;
}

.dark .btn-primary:hover {
    background-color: #047857 !important;
    border-color: #047857 !important;
}

.dark .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.dark .btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.dark .btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.dark .form-control {
    background-color: #3a3a3a !important;
    border-color: #404040 !important;
    color: #f3f4f6 !important;
}

.dark .form-control:focus {
    background-color: #3a3a3a !important;
    border-color: #059669 !important;
    color: #f3f4f6 !important;
}

.dark .navbar {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

.dark .navbar-brand {
    color: #10b981 !important;
}

.dark .stat-card {
    background-color: #2d2d2d !important;
    color: #f3f4f6 !important;
}

.dark .stat-number {
    color: #10b981 !important;
}

.dark .stat-label {
    color: #e5e7eb !important;
}

.dark .alert-success {
    background-color: #064e3b !important;
    border-color: #065f46 !important;
    color: #a7f3d0 !important;
}

.dark .alert-danger {
    background-color: #7f1d1d !important;
    border-color: #991b1b !important;
    color: #fecaca !important;
}

.dark .pagination a {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #f3f4f6 !important;
}

.dark .pagination a:hover {
    background-color: #3a3a3a !important;
    color: #f3f4f6 !important;
}

.dark .pagination .active {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: white !important;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* Tables */
.table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #1f2937;
}

.table th {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    color: #374151;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    color: #1f2937;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #059669;
    color: white;
}

.btn-primary:hover {
    background-color: #047857;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1f2937;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

/* Navigation */
.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #059669;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background-color: #f8f9fa;
}

.pagination .active {
    background-color: #059669;
    color: white;
    border-color: #059669;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    color: #1f2937;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #059669;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
}

.theme-toggle:hover {
    color: #333;
}

.dark .theme-toggle {
    color: #ccc;
}

.dark .theme-toggle:hover {
    color: #fff;
}