/* Video Analytics Modal Styles */

/* Selector Section */
.vid-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vid-selector label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.vid-selector select {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    background: white;
}

.vid-selector select:focus {
    border-color: #667eea;
    outline: none;
}

.vid-or {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.vid-manual-input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
}

.vid-manual-input:focus {
    border-color: #667eea;
    outline: none;
}

/* Stats Grid */
.vid-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.vid-stat {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    transition: transform 0.2s;
}

.vid-stat:hover {
    transform: translateY(-2px);
}

.vid-stat-icon {
    font-size: 24px;
}

.vid-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 4px 0;
}

.vid-stat-lbl {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Charts Grid */
.vid-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.vid-chart-section {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #eee;
}

.vid-chart-section h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #333;
}

/* Modal Shared */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal-content {
    background: #fff;
    margin: 3% auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: vidSlideIn 0.3s ease-out;
}

@keyframes vidSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: #ffeb3b;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 25px;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .vid-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vid-charts-grid {
        grid-template-columns: 1fr;
    }

    .vid-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .vid-manual-input {
        width: 100%;
    }

    .modal-body {
        padding: 15px;
    }
}