/* Radio Advertisement Management System Styles */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

html { font-size: 11px; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e3e6ea;
}

main.container-fluid {
    background-color: #e3e6ea;
}

.navbar-brand { font-weight: 600; font-size: 1rem; }

/* Page titles smaller */
h1, .h1 { font-size: 1.25rem; font-weight: 600; }
h2, .h2 { font-size: 1.1rem; font-weight: 600; }

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.card {
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

/* Tighter default paddings and font sizes */
.card-body { padding: 0.9rem; }
.card-header { padding: 0.6rem 0.9rem; }

.btn { padding: 0.3rem 0.55rem; font-size: 0.9rem; }
.btn-sm { padding: 0.2rem 0.4rem; font-size: 0.8rem; }

.form-control, .form-select { padding: 0.35rem 0.5rem; font-size: 0.9rem; }
.form-label { margin-bottom: 0.25rem; }

.table { font-size: 0.9rem; }
.table td, .table th { padding: 0.45rem 0.5rem; }

/* Priority backgrounds for queue rows */
.priority-high { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); }
.priority-normal { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); }
.priority-low { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.badge {
    font-size: 0.75em;
    font-weight: 500;
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Audio player controls */
.audio-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-controls audio {
    max-width: 160px;
}

/* Status indicators */
.status-ungraded {
    color: var(--warning-color);
}

.status-approved {
    color: var(--success-color);
}

.status-rejected {
    color: var(--danger-color);
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

/* Schedule timeline */
.schedule-timeline {
    position: relative;
    padding-left: 2rem;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.schedule-entry {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.schedule-entry::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for status changes */
@keyframes statusChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-changing {
    animation: statusChange 0.3s ease;
}

/* Audio waveform visualization */
.audio-waveform {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    border-radius: 2px;
    animation: waveform 1s ease-in-out infinite;
}

@keyframes waveform {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Print styles */
@media print {
    .navbar, .btn, .modal {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .table {
        font-size: 12px;
    }
}
