/* Shared admin styles for VideoFlowEngine HLS Streaming */

/* Upload page */
.vfhls-upload-zone {
    border: 2px dashed #b4b9be;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    transition: all 0.2s;
    cursor: pointer;
    margin: 20px 0;
}
.vfhls-upload-zone:hover,
.vfhls-upload-zone.dragover {
    border-color: #2271b1;
    background: #f0f6fc;
}
.vfhls-upload-zone .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #b4b9be;
    transition: color 0.2s;
}
.vfhls-upload-zone:hover .dashicons,
.vfhls-upload-zone.dragover .dashicons {
    color: #2271b1;
}
.vfhls-upload-zone p {
    margin: 12px 0 0;
    color: #646970;
    font-size: 14px;
}
.vfhls-upload-zone .button { margin-top: 12px; }
.vfhls-upload-zone input[type="file"] { display: none; }

.vfhls-table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-top: 20px;
}
.vfhls-table th {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #c3c4c7;
    background: #f6f7f7;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}
.vfhls-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
    vertical-align: middle;
}
.vfhls-table tr:last-child td { border-bottom: none; }
.vfhls-table tr:hover td { background: #f9f9f9; }

.vfhls-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: capitalize;
}
.vfhls-badge-processing,
.vfhls-badge-queued { background: #fff3cd; color: #856404; }
.vfhls-badge-ready { background: #d4edda; color: #155724; }
.vfhls-badge-failed { background: #f8d7da; color: #721c24; }

.vfhls-progress-cell { min-width: 120px; }
.vfhls-progress-bar-bg {
    background: #e9ecef;
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}
.vfhls-progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: #2271b1;
    transition: width 0.4s ease;
}
.vfhls-progress-text {
    font-size: 11px;
    color: #646970;
    margin-top: 3px;
}

.vfhls-shortcode {
    font-family: monospace;
    font-size: 12px;
    background: #f0f0f1;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #dcdcde;
    transition: background 0.2s;
    display: inline-block;
}
.vfhls-shortcode:hover { background: #e0e0e0; }
.vfhls-shortcode.copied { background: #d4edda; border-color: #a3cfbb; }

.vfhls-delete-link { color: #b32d2e; text-decoration: none; }
.vfhls-delete-link:hover { color: #a00; text-decoration: underline; }

.vfhls-empty-state {
    text-align: center;
    padding: 40px;
    color: #646970;
}
.vfhls-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #dcdcde;
}

.vfhls-tooltip { cursor: help; color: #2271b1; position: relative; display: inline-block; }
.vfhls-tooltip-content {
    display: none;
    position: absolute;
    bottom: 20px;
    left: -8px;
    background: #1d2327;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 100;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.vfhls-tooltip:hover .vfhls-tooltip-content { display: block; }
.vfhls-tooltip-content a { color: #72aee6; text-decoration: none; }
.vfhls-tooltip-content a:hover { text-decoration: underline; }

/* Analytics page */
.vfhls-analytics { max-width: 1200px; }
.vfhls-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.vfhls-stat-card { background: #fff; border: 1px solid #c3c4c7; border-radius: 8px; padding: 20px; text-align: center; }
.vfhls-stat-card .number { font-size: 32px; font-weight: 700; color: #1d2327; line-height: 1.2; }
.vfhls-stat-card .label { font-size: 13px; color: #646970; margin-top: 4px; }
.vfhls-card { background: #fff; border: 1px solid #c3c4c7; border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.vfhls-card h2 { font-size: 16px; margin: 0 0 16px; color: #1d2327; }
.vfhls-chart-container { position: relative; height: 250px; }
.vfhls-chart-bar { display: inline-block; background: #2271b1; border-radius: 3px 3px 0 0; min-width: 20px; vertical-align: bottom; transition: height 0.3s; }
.vfhls-chart-row { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding: 0 0 24px; border-bottom: 1px solid #e9ecef; }
.vfhls-chart-labels { display: flex; gap: 4px; font-size: 10px; color: #646970; margin-top: 4px; }
.vfhls-chart-labels span { min-width: 20px; text-align: center; flex: 1; }
.vfhls-top-table { width: 100%; border-collapse: collapse; }
.vfhls-top-table th { text-align: left; padding: 8px 12px; border-bottom: 2px solid #e9ecef; font-size: 12px; color: #646970; text-transform: uppercase; }
.vfhls-top-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f1; font-size: 13px; }
.vfhls-top-table tr:hover td { background: #f9f9f9; }
.vfhls-upgrade { background: #f0f6fc; border: 1px solid #c3d8ed; border-radius: 8px; padding: 32px; text-align: center; margin: 20px 0; }
.vfhls-upgrade h2 { color: #1d2327; margin-bottom: 8px; }
.vfhls-upgrade p { color: #646970; margin-bottom: 16px; }
.vfhls-upgrade .button { background: #2271b1; color: #fff; border: none; padding: 8px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.vfhls-loading { text-align: center; padding: 40px; color: #646970; }
.vfhls-video-detail { display: none; }
.vfhls-video-detail.active { display: block; }
.vfhls-back-link { cursor: pointer; color: #2271b1; text-decoration: none; font-size: 13px; }
.vfhls-back-link:hover { text-decoration: underline; }
.vfhls-dropoff-bar { height: 32px; background: #e9ecef; border-radius: 4px; overflow: hidden; display: flex; }
.vfhls-dropoff-segment { height: 100%; transition: width 0.3s; }
@media (max-width: 768px) {
    .vfhls-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
