/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
}

/* Main container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header section */
.header {
    text-align: center;
    margin-bottom: 30px;
}

h1, h2 {
    color: #00ff00;
}

.database-info {
    font-size: 1.1em;
    margin: 15px 0;
}

/* Main content layout */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.audio-section {
    flex: 1;
    border: 1px solid #00ff00;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.search-section {
    flex: 1;
    text-align: center;
}

/* Search elements */
.search-box {
    margin: 15px 0;
}

#searchBox {
    background-color: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px;
    width: 200px;
    margin-right: 10px;
}

#searchBtn {
    background-color: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 15px;
    cursor: pointer;
}

#searchBtn:hover {
    background-color: #00ff00;
    color: #000;
}

/* Results section */
.results-section {
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
}

.results-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
}

#results {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#results th, #results td {
    border: 1px solid #00ff00;
    padding: 8px;
    text-align: left;
}

#results th {
    background-color: #003300;
}

.error {
    color: #ff0000;
    margin: 10px 0;
}

/* Status indicators */
.status {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
}

.status-A {
    background-color: #003300;
    color: #00ff00;
}

/* Audio player customization */
audio {
    width: 100%;
    margin: 10px 0;
}

/* Focus states */
input:focus, button:focus {
    outline: none;
    box-shadow: 0 0 5px #00ff00;
}

/* License information */
.license-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #00ff00;
    border-radius: 5px;
}

.license-info label {
    color: #00ff00;
    font-weight: bold;
}

.license-info span {
    color: #00ff00;
}

/* Results section */
.results-container {
    margin-top: 20px;
}

.result-item {
    border: 1px solid #00ff00;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

/* Error messages */
.error-message {
    color: #ff0000;
    text-align: center;
    margin: 10px 0;
    text-shadow: 0 0 5px #ff0000;
}

/* Matrix-style scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .audio-section, .search-section {
        width: 100%;
        min-width: unset;
    }
}

/* Add to your existing CSS */
.db-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: #1a1a1a;  /* Dark background */
    border-radius: 8px;
    margin: 1rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    background: #2d2d2d;  /* Darker background */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 0.9em;
    color: #00ff00;  /* Matrix green */
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;  /* White text */
}

.db-error {
    color: #ff4444;
    text-align: center;
    padding: 1rem;
    background: #fff5f5;
    border-radius: 4px;
    border: 1px solid #ffdddd;
}

/* Update stream status colors */
.stream-status {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.stream-status.connected {
    color: #00ff00;  /* Matrix green */
    background: #1a1a1a;  /* Dark background */
}

.stream-status.error {
    color: #ff4444;  /* Red for errors */
    background: #1a1a1a;  /* Dark background */
}

.stream-status.buffering {
    color: #00ff00;  /* Matrix green */
    background: #1a1a1a;  /* Dark background */
}

/* Add some hover effects */
.stat-item:hover {
    background: #3d3d3d;  /* Slightly lighter on hover */
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.audio-section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

h2 {
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 5px;
}

.feed-list {
    margin-top: 10px;
}

.audio-fallback {
    display: none;
}

audio:not([controls]) + .audio-fallback {
    display: block;
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

.database-info {
    text-align: center;
    margin: 10px 0;
    color: #333;
    font-size: 0.9em;
} 