/* Recordings styles - Monitor info, health grid, recordings table, badges, cards */

.monitor-container {
    position: relative;
}

.monitor-info-text {
    margin-top: 10px;
    color: #777;
    font-size: 14px;
}

body.dark-mode .monitor-info-text {
    color: #999;
}

#monitor-debug {
    color: #999;
}

body.dark-mode #monitor-debug {
    color: #777;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.health-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.health-item.status-ok {
    border-left-color: #27ae60;
}

.health-item.status-warning {
    border-left-color: #f39c12;
}

.health-item.status-error, .health-item.status-critical {
    border-left-color: #e74c3c;
}

.health-item-title {
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

.health-item-message {
    font-size: 0.85em;
    color: #666;
}

.health-item-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 5px;
}

.health-item-status.ok {
    background: #27ae60;
    color: white;
}

.health-item-status.warning {
    background: #f39c12;
    color: white;
}

.health-item-status.error, .health-item-status.critical {
    background: #e74c3c;
    color: white;
}

.recordings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.recordings-table th,
.recordings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.recordings-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
}

body.dark-mode .recordings-table th {
    background: #1a1a1a;
    color: #b0b0b0;
}

body.dark-mode .recordings-table td {
    color: #e0e0e0;
    border-bottom: 1px solid #444;
}

.recordings-table tr:hover {
    background: #f8f9fa;
}

body.dark-mode .recordings-table tr:hover {
    background: #333;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge.complete {
    background: #d4edda;
    color: #155724;
}

.badge.recording {
    background: #f8d7da;
    color: #721c24;
}

.badge.converting {
    background: #fff3cd;
    color: #856404;
}

.badge.trimming {
    background: #fdebd0;
    color: #af601a;
}

body.dark-mode .badge.trimming {
    background: #3d2e1a;
    color: #e67e22;
}

.badge.resetting {
    background: #d5f5e3;
    color: #1e8449;
}

body.dark-mode .badge.resetting {
    background: #1a3d2a;
    color: #27ae60;
}

.badge.publishing {
    background: #e8daef;
    color: #6c3483;
}

body.dark-mode .badge.publishing {
    background: #2d1f3d;
    color: #bb8fce;
}

.badge.published {
    background: #d2b4de;
    color: #4a235a;
}

body.dark-mode .badge.published {
    background: #3d1f4a;
    color: #d2b4de;
}

.badge.archiving {
    background: #d1ecf1;
    color: #0c5460;
}

body.dark-mode .badge.archiving {
    background: #1a3a4a;
    color: #7ec8e3;
}

.badge.archived {
    background: #b8daff;
    color: #004085;
}

body.dark-mode .badge.archived {
    background: #1a2e4a;
    color: #b8daff;
}

.badge.test {
    background: #ffeaa7;
    color: #d35400;
    border: 1px dashed #f39c12;
}

body.dark-mode .badge.test {
    background: #3d3520;
    color: #f39c12;
}

.action-btn {
    padding: 5px 10px;
    font-size: 12px;
}

.action-btn-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-btn-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-download {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-download:hover {
    background: #3498db;
    color: white;
}

.btn-delete {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-delete:hover {
    background: #e74c3c;
    color: white;
}

.btn-rename {
    background: transparent;
    color: #9b59b6;
    border: 2px solid #9b59b6;
}

.btn-rename:hover {
    background: #9b59b6;
    color: white;
}

.btn-reset {
    background: transparent;
    color: #f39c12;
    border: 2px solid #f39c12;
}

.btn-reset:hover {
    background: #f39c12;
    color: white;
}

.btn-email {
    background: transparent;
    color: #16a085;
    border: 2px solid #16a085;
}

.btn-email:hover {
    background: #16a085;
    color: white;
}

.btn-publish {
    background: transparent;
    color: #8e44ad;
    border: 2px solid #8e44ad;
}

.btn-publish:hover {
    background: #8e44ad;
    color: white;
}

body.dark-mode .btn-publish {
    color: #bb8fce;
    border-color: #bb8fce;
}

body.dark-mode .btn-publish:hover {
    background: #8e44ad;
    color: white;
}

.btn-archive {
    background: transparent;
    color: #2980b9;
    border: 2px solid #2980b9;
}

.btn-archive:hover {
    background: #2980b9;
    color: white;
}

body.dark-mode .btn-archive {
    color: #7ec8e3;
    border-color: #7ec8e3;
}

body.dark-mode .btn-archive:hover {
    background: #2980b9;
    color: white;
}

/* Mobile-friendly recordings */
.recordings-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.recordings-card-container {
    display: none;
}

.recordings-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

body.dark-mode .recordings-empty {
    color: #999;
}

@media (max-width: 768px) {
    .recordings-table {
        display: none;
    }

    .recordings-card-container {
        display: block;
    }

    .recording-card {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        border-left: 4px solid #3498db;
    }

    body.dark-mode .recording-card {
        background: #1a1a1a;
    }

    .recording-card-header {
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 10px;
    }

    .recording-card-title {
        font-weight: 600;
        font-size: 16px;
        color: #333;
        margin-bottom: 4px;
    }

    body.dark-mode .recording-card-title {
        color: #e0e0e0;
    }

    .recording-card-speaker {
        font-size: 14px;
        color: #666;
        margin-bottom: 8px;
    }

    body.dark-mode .recording-card-speaker {
        color: #b0b0b0;
    }

    .recording-card-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
        font-size: 13px;
    }

    .recording-card-meta-item {
        color: #666;
    }

    body.dark-mode .recording-card-meta-item {
        color: #b0b0b0;
    }

    .recording-card-meta-label {
        font-weight: 600;
        margin-right: 4px;
    }

    .recording-card-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .recording-card-actions .action-btn-row {
        display: flex;
        gap: 6px;
    }

    .recording-card-actions .action-btn {
        flex: 1;
        min-width: 70px;
        text-align: center;
    }
}
