/* Radio Recorder - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --sidebar-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: calc(100vh - 48px);
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: #e7f1ff;
    font-weight: 500;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Recording Cards */
.recording-card {
    transition: box-shadow 0.3s ease;
}

.recording-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-title {
    color: #212529;
    font-size: 1.1rem;
}

/* Audio Player */
audio.audio-player {
    height: 40px;
    margin-top: 0.5rem;
}

audio::-webkit-media-controls-panel {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Buttons */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    margin-top: 3rem;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .recording-card .row {
        flex-direction: column;
    }

    .recording-card .text-md-end {
        text-align: left !important;
    }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

/* Navbar enhancements */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand i {
    font-size: 1.5rem;
    vertical-align: middle;
}

/* Search box (for future enhancement) */
.search-box {
    max-width: 400px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
audio:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .sidebar,
    .navbar,
    .footer,
    audio,
    .btn {
        display: none !important;
    }
}
