/* Custom styles for Reddit Bot Manager */

.navbar-brand {
    font-weight: 600;
}

.card {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.15s ease-in-out;
}

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

.badge {
    font-size: 0.75rem;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.log-container {
    font-family: 'Courier New', Courier, monospace;
}

.table th {
    border-top: none;
    font-weight: 600;
}

/* Admin table styling */
.table-dark th {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
    border-color: var(--bs-border-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}

/* Status indicators */
.status-active {
    color: var(--bs-success);
}

.status-inactive {
    color: var(--bs-secondary);
}

/* Loading spinner customization */
.spinner-border {
    color: var(--bs-primary);
}

/* Custom alert styles */
.alert {
    border: none;
    border-radius: 8px;
}

/* Footer styling */
footer {
    margin-top: auto;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card-body .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
    }
    
    .stats-card h4 {
        font-size: 1.2rem;
    }
}

/* Dark theme enhancements */
[data-bs-theme=dark] .table {
    --bs-table-bg: transparent;
}

[data-bs-theme=dark] .form-control {
    background-color: var(--bs-dark);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme=dark] .form-control:focus {
    background-color: var(--bs-dark);
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
}

/* Animation for status changes */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-active {
    animation: pulse 2s infinite;
}

/* Code styling */
code {
    background-color: var(--bs-gray-100);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

[data-bs-theme=dark] code {
    background-color: var(--bs-gray-800);
    color: var(--bs-gray-300);
}

/* Modal enhancements */
.modal-header {
    border-bottom: 1px solid var(--bs-border-color);
}

.modal-footer {
    border-top: 1px solid var(--bs-border-color);
}

/* Custom scrollbar for log container */
.log-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track {
    background: var(--bs-gray-200);
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb {
    background: var(--bs-gray-400);
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}

[data-bs-theme=dark] .log-container::-webkit-scrollbar-track {
    background: var(--bs-gray-800);
}

[data-bs-theme=dark] .log-container::-webkit-scrollbar-thumb {
    background: var(--bs-gray-600);
}

[data-bs-theme=dark] .log-container::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}
