/* Recordings Page Styles */

.page-content {
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.container h1 {
    margin-bottom: 24px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 16px;
    font-size: 14px;
}

.breadcrumb-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #00d4ff;
    cursor: pointer;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #888;
}

/* Agent Cards */
#agentsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.agent-card {
    cursor: pointer;
    transition: all 0.2s;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.agent-card-header {
    border-bottom: 1px solid #333;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.agent-card-header h3 {
    font-size: 18px;
    color: #00d4ff;
    margin: 0;
}

.agent-stats {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #00d4ff;
}

.stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading State */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.small {
    font-size: 12px;
}

/* Recordings Header */
.recordings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Room Section */
.room-section {
    margin-bottom: 16px;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    margin-bottom: 12px;
}

.room-name {
    font-weight: 600;
    color: #00d4ff;
    font-family: monospace;
    font-size: 14px;
}

.room-count {
    font-size: 12px;
    color: #888;
}

.room-stats {
    font-size: 12px;
    color: #888;
}

/* Track List */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #0f0f23;
    border-radius: 8px;
    transition: background 0.2s;
}

.track-item:hover {
    background: #1a1a3e;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-participant {
    font-weight: 500;
    color: #eee;
    margin-bottom: 4px;
}

.track-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.track-duration {
    color: #00d4ff;
    font-weight: 600;
}

.track-format {
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Track Actions */
.track-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-play {
    background: #00d4ff;
    color: #000;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-play:hover {
    background: #00b8e6;
}

.btn-download {
    background: #333;
    color: #eee;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #444;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 14px;
    font-family: monospace;
    color: #00d4ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 40px);
}

.btn-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    color: #eee;
}

.player-info {
    margin-bottom: 16px;
}

.player-info div {
    font-size: 13px;
    margin-bottom: 4px;
}

/* Audio Player */
.audio-player {
    width: 100%;
    height: 40px;
}

/* Custom audio player styling for webkit browsers */
audio::-webkit-media-controls-panel {
    background: #0f0f23;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #eee;
}

/* Responsive */
@media (max-width: 600px) {
    .track-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .track-actions {
        width: 100%;
    }

    .btn-play, .btn-download {
        flex: 1;
        text-align: center;
    }

    .track-meta {
        flex-wrap: wrap;
    }
}
