/* BMV Control Console - Enterprise Professional UI Styles */

/* Screen Control Panel */
.bmv-screen-control {
    padding: 1rem;
    max-width: 1920px;
    margin: 0 auto;
    background: #f9fafb;
    min-height: 100vh;
}

.bmv-theme-selector-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem;
}

.bmv-control-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

    .bmv-control-header h1 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0 0 0.25rem 0;
        letter-spacing: -0.2px;
    }

    .bmv-control-header p {
        color: #6b7280;
        margin: 0;
        font-size: 0.8125rem;
        font-weight: 400;
    }


/* ==========================================
   QUICK ACTIONS SECTION - ULTRA MODERN
   ========================================== */
.bmv-quick-actions-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bmv-quick-action-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 51, 102, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bmv-quick-action-card:hover {
    border-color: #d1d5db;
}

    .bmv-quick-action-card h3 {
        margin: 0 0 0.5rem 0;
        color: #1a1a1a;
        font-size: 1rem;
        font-weight: 600;
    }

    .bmv-quick-action-card p {
        margin: 0 0 1rem 0;
        color: #666;
        font-size: 0.85rem;
    }

.bmv-btn-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

    .bmv-btn-bell:hover:not(:disabled) {
        background: #2d2d2d;
        border-color: #2d2d2d;
    }

    .bmv-btn-bell:active:not(:disabled) {
        background: #0f0f0f;
    }

    .bmv-btn-bell:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.bmv-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

    .bmv-textarea:focus {
        outline: none;
        border-color: #9ca3af;
        box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    }

.bmv-quick-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.bmv-select-small {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
}

.bmv-btn-news {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

    .bmv-btn-news:hover:not(:disabled) {
        background: #2d2d2d;
        border-color: #2d2d2d;
    }

    .bmv-btn-news:active:not(:disabled) {
        background: #0f0f0f;
    }

    .bmv-btn-news:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ==========================================
   CURRENT EVENT BANNER - ENTERPRISE
   ========================================== */
.bmv-current-event-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.bmv-event-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: white;
    flex: 1;
}

.bmv-event-type {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .bmv-event-type.bellring {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .bmv-event-type.news {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }

.bmv-event-info strong {
    font-size: 0.9375rem;
    color: white;
    font-weight: 600;
}

.bmv-event-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmv-event-duration {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.875rem;
    color: white;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    white-space: nowrap;
    min-width: fit-content;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

.bmv-btn-stop {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #b91c1c;
    color: white;
    border: 1px solid #b91c1c;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

    .bmv-btn-stop:hover {
        background: #b91c1c;
        border-color: #b91c1c;
    }

    .bmv-btn-stop:active {
        background: #991b1b;
    }

/* ==========================================
   SCREENS SECTION (Side by Side)
   ========================================== */
.bmv-screens-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: start;
}

.bmv-screen-column {
    min-width: 0;
}

@media (max-width: 1200px) {
    .bmv-screens-section {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SCHEDULE SECTION
   ========================================== */
.bmv-schedule-section {
    background: white;
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bmv-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

    .bmv-section-header h2 {
        margin: 0;
        color: #1a1a1a;
        font-size: 1.25rem;
    }

.bmv-section-actions {
    display: flex;
    gap: 0.5rem;
}

.bmv-schedule-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.bmv-filter-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

    .bmv-filter-btn:hover {
        border-color: #9ca3af;
        color: #1a1a1a;
    }

    .bmv-filter-btn.active {
        background: #1a1a1a;
        color: white;
        border-color: #9ca3af;
    }

.bmv-schedule-content {
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .bmv-schedule-content {
        grid-template-columns: 1fr;
    }
}

/* Today Events Timeline */
.bmv-today-events {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

    .bmv-today-events h4 {
        margin: 0 0 1rem 0;
        color: #1a1a1a;
        font-size: 0.95rem;
    }

.bmv-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bmv-timeline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #9ca3af;
    transition: all 0.2s ease;
}

    .bmv-timeline-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .bmv-timeline-item.past {
        opacity: 0.5;
        border-left-color: #999;
    }

    .bmv-timeline-item.upcoming {
        border-left-color: #9ca3af;
    }

    .bmv-timeline-item.bellring {
        border-left-color: #9ca3af;
    }

    .bmv-timeline-item.news {
        border-left-color: #9ca3af;
    }

.bmv-timeline-time {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.8125rem;
    min-width: 45px;
}

.bmv-timeline-icon {
    font-size: 1rem;
}

.bmv-timeline-name {
    flex: 1;
    font-size: 0.85rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmv-btn-icon-small {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

    .bmv-btn-icon-small:hover {
        background: #1a1a1a;
        border-color: #9ca3af;
    }

/* All Events Table */
.bmv-all-events {
    min-width: 0;
}

    .bmv-all-events h4 {
        margin: 0 0 1rem 0;
        color: #1a1a1a;
        font-size: 0.95rem;
    }

.bmv-events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

    .bmv-events-table th {
        text-align: left;
        padding: 0.5rem 0.625rem;
        background: #f9fafb;
        color: #6b7280;
        font-weight: 600;
        font-size: 0.6875rem;
        text-transform: uppercase;
        border-bottom: 1px solid #e5e7eb;
    }

    .bmv-events-table td {
        padding: 0.5rem 0.625rem;
        border-bottom: 1px solid #f3f4f6;
        vertical-align: middle;
    }

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

    .bmv-events-table small {
        color: #999;
        font-size: 0.75rem;
    }

.bmv-action-buttons {
    display: flex;
    gap: 0.25rem;
}

.bmv-btn-icon {
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

    .bmv-btn-icon:hover {
        background: #f0f0f0;
        border-color: #bbb;
    }

    .bmv-btn-icon.danger:hover {
        background: #ffebee;
        border-color: #C41E3A;
    }

.bmv-status {
    font-size: 1rem;
}

    .bmv-status.active {
        color: #009B4D;
    }

    .bmv-status.inactive {
        color: #999;
    }

.bmv-empty {
    text-align: center;
    color: #999;
    padding: 1.5rem;
    font-style: italic;
}

/* Next Event Info */
.bmv-next-event-info {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 4px;
    color: #374151;
    font-size: 0.8125rem;
    border: 1px solid #e5e7eb;
}

/* ==========================================
   BUTTONS
   ========================================== */
.bmv-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

    .bmv-btn-primary:hover:not(:disabled) {
        background: #2d2d2d;
        border-color: #2d2d2d;
    }

    .bmv-btn-primary:active:not(:disabled) {
        background: #0f0f0f;
    }

    .bmv-btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.bmv-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .bmv-btn-secondary:hover {
        background: #e5e5e5;
    }

/* ==========================================
   MODAL
   ========================================== */
.bmv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: modalOverlayFadeIn 0.2s ease-out forwards;
}

@keyframes modalOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.bmv-modal {
    background: #ffffff;
    border-radius: 4px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bmv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
    border-radius: 4px 4px 0 0;
    min-height: 60px;
}

    .bmv-modal-header h3 {
        margin: 0;
        color: #1a1a1a;
        font-size: 0.9375rem;
        font-weight: 600;
        letter-spacing: -0.1px;
    }

.bmv-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0.25rem;
    line-height: 1;
}

    .bmv-modal-close:hover {
        color: #333;
    }

.bmv-modal-body {
    padding: 1rem;
    max-height: calc(90vh - 120px); /* Altura del modal menos header y footer */
    overflow-y: auto;
}

.bmv-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    background: white;
    min-height: 60px;
    align-items: center;
}

.bmv-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* 3 column form row for modal */
.bmv-modal-compact .bmv-form-row {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 500px) {
    .bmv-modal-compact .bmv-form-row {
        grid-template-columns: 1fr;
    }
}

.bmv-form-row.bmv-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

    .bmv-form-row.bmv-checkboxes label {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        cursor: pointer;
        font-size: 0.9rem;
    }

.bmv-form-group {
    margin-bottom: 1rem;
}

    .bmv-form-group label {
        display: block;
        margin-bottom: 0.35rem;
        color: #333;
        font-size: 0.85rem;
        font-weight: 500;
    }

.bmv-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    font-family: inherit;
}

    .bmv-input:focus {
        outline: none;
        border-color: #9ca3af;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    }

/* Duration display field - looks like input but readonly */
.bmv-duration-display {
    background: #f8f9fa !important;
    color: #666 !important;
    cursor: default;
    border-color: #e0e0e0 !important;
    font-weight: 600;
    text-align: center;
}

    .bmv-duration-display:focus {
        box-shadow: none !important;
        border-color: #e0e0e0 !important;
    }

textarea.bmv-input {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================
   LOADING & ERROR STATES
   ========================================== */
.bmv-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #666;
}

.bmv-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #003366;
    border-radius: 50%;
    animation: bmv-spin 1s linear infinite;
    margin-bottom: 1rem;
}

.bmv-spinner-large {
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top-color: #003366;
    border-radius: 50%;
    animation: bmv-spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

/* Loading steps indicator */
.bmv-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    min-width: 200px;
}

.bmv-step {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.bmv-step.completed {
    background: rgba(0, 155, 77, 0.1);
    border-left-color: #009B4D;
    color: #007539;
}

/* Pulse animation for loading states */
.bmv-loading-pulse {
    animation: pulse-loading 2s ease-in-out infinite;
}

@keyframes pulse-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Button loading states */
.bmv-btn-loading {
    position: relative;
    pointer-events: none;
}

.bmv-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: bmv-spin 1s linear infinite;
}

/* Success animations */
.bmv-success-flash {
    animation: success-flash 0.6s ease-out;
}

@keyframes success-flash {
    0% { background-color: transparent; }
    50% { background-color: rgba(0, 155, 77, 0.2); }
    100% { background-color: transparent; }
}

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

.bmv-error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 3rem;
    background: #fff3f3;
    border: 1px solid #C41E3A;
    border-radius: 12px;
    color: #C41E3A;
}

/* ==========================================
   TYPE BADGES
   ========================================== */
.bmv-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

    .bmv-type-badge.bellring {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #e5e7eb;
    }

    .bmv-type-badge.news {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #e5e7eb;
    }

/* ==========================================
   INTERNAL/EXTERNAL SCREEN PANELS - ENTERPRISE
   ========================================== */
.bmv-internal-panel,
.bmv-external-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bmv-internal-panel:hover,
.bmv-external-panel:hover {
    border-color: #d1d5db;
}

.bmv-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.bmv-panel-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

    .bmv-panel-header h2 {
        margin: 0;
        color: #1a1a1a !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.1px !important;
        line-height: 1.4 !important;
    }

    .bmv-internal-panel .bmv-panel-header h2,
    .bmv-external-panel .bmv-panel-header h2 {
        margin: 0;
        color: #1a1a1a !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.1px !important;
        line-height: 1.4 !important;
    }

/* Theme changes indicator */
.bmv-panel-header.has-changes::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.bmv-panel-actions {
    display: flex;
    gap: 0.5rem;
}

.bmv-panel-description {
    color: #666;
    font-size: 0.8rem;
    margin: 0 0 1rem 0;
}

.bmv-panel-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.bmv-legend-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.bmv-legend-note {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

/* Sections Legend (Collapsible) */
.bmv-sections-legend {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

    .bmv-sections-legend summary {
        padding: 0.6rem 0.75rem;
        cursor: pointer;
        font-size: 0.8rem;
        font-weight: 600;
        color: #1a1a1a;
        list-style: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .bmv-sections-legend summary::-webkit-details-marker {
            display: none;
        }

        .bmv-sections-legend summary::before {
            content: '▶';
            font-size: 0.6rem;
            transition: transform 0.2s;
        }

    .bmv-sections-legend[open] summary::before {
        transform: rotate(90deg);
    }

.bmv-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
    padding: 0.5rem 0.625rem 0.625rem;
}

@media (max-width: 500px) {
    .bmv-legend-grid {
        grid-template-columns: 1fr;
    }
}

.bmv-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #9ca3af;
    font-size: 0.7rem;
}

    .bmv-legend-item.institutional {
        border-left-color: #9ca3af;
    }

    .bmv-legend-item.data {
        border-left-color: #9ca3af;
    }

    .bmv-legend-item.chart {
        border-left-color: #9ca3af;
    }

    .bmv-legend-item.summary {
        border-left-color: #9ca3af;
    }

    .bmv-legend-item.international {
        border-left-color: #9ca3af;
    }

    .bmv-legend-item.derivatives {
        border-left-color: #9ca3af;
    }

    .bmv-legend-item.currency {
        border-left-color: #9ca3af;
    }

    .bmv-legend-item.fibras {
        border-left-color: #9ca3af;
    }

.bmv-legend-num {
    font-weight: 600;
    color: #1a1a1a;
    min-width: 32px;
    text-align: center;
}

.bmv-legend-desc {
    color: #555;
    flex: 1;
    line-height: 1.3;
}

.bmv-legend-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
}

.bmv-legend-badge.editable {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.bmv-legend-badge.readonly {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.bmv-legend-item.editable-section {
    background: #f9fafb;
}

.bmv-legend-item.readonly-section {
    opacity: 0.85;
}

.bmv-legend-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.625rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.bmv-legend-hint {
    font-size: 0.625rem;
    color: #6b7280;
}

/* Section Cards Grid */
.bmv-sections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
}

@media (max-width: 600px) {
    .bmv-sections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bmv-section-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.625rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

    .bmv-section-card:hover {
        border-color: #d1d5db;
    }

    .bmv-section-card.editable {
            border-color: #9ca3af;
            background: #f9fafb;
        }

    .bmv-section-card.clickable {
        cursor: pointer;
    }

    .bmv-section-card.clickable:hover {
        border-color: #6b7280;
        background: #f3f4f6;
    }

    .bmv-edit-icon {
        position: absolute;
        bottom: 2px;
        right: 4px;
        font-size: 0.65rem;
        opacity: 0.7;
    }

.bmv-section-number {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.bmv-section-type {
    font-size: 0.625rem;
    color: #6b7280;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bmv-sound-icon {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* External Panel - Views */
.bmv-current-view-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.bmv-view-active-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.75rem;
}

.bmv-view-info-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

    .bmv-view-info-compact strong {
        color: #1a1a1a;
        font-weight: 600;
    }

.bmv-view-time-compact {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Control de Agrupamiento de Secciones */
.bmv-group-control {
    background: #ffffff;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bmv-group-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bmv-group-control-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.1px;
}

.bmv-btn-group-toggle {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    letter-spacing: -0.1px;
}

.bmv-btn-group-toggle.grouped {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.bmv-btn-group-toggle.grouped:hover:not(:disabled) {
    background: #2d2d2d;
    border-color: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bmv-btn-group-toggle.ungrouped {
    background: #ffffff;
    border-color: #9ca3af;
    color: #374151;
}

.bmv-btn-group-toggle.ungrouped:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #1a1a1a;
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bmv-btn-group-toggle:active:not(:disabled) {
    transform: translateY(0);
}

.bmv-btn-group-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bmv-group-control-info {
    font-size: 0.8125rem;
    color: #374151;
    margin-top: 0.5rem;
    line-height: 1.5;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 4px;
    border-left: 3px solid #1a1a1a;
}

.bmv-group-control-info strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.bmv-group-control-info p {
    margin: 0.25rem 0 0 0;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.5;
}

.bmv-views-list h4 {
    margin: 0 0 0.75rem 0;
    color: #1a1a1a;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.1px;
    line-height: 1.4;
}

/* View Cards - Unificado para ambos paneles */
.bmv-views-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}

.bmv-view-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

    .bmv-view-card:hover {
        border-color: #d1d5db;
    }

    .bmv-view-card.active {
        border-color: #6b7280;
        background: #f3f4f6;
    }

    .bmv-view-card.editable {
        border-color: #9ca3af;
        background: #f9fafb;
        cursor: pointer;
    }

    .bmv-view-card.editable:hover {
        border-color: #6b7280;
        background: #f3f4f6;
    }

.bmv-view-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.8125rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.bmv-view-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bmv-view-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
}

    .bmv-view-badge.full {
        background: #6b7280;
        color: white;
    }

    .bmv-view-badge.split {
        background: #9ca3af;
        color: white;
    }

    .bmv-view-badge.grouped {
        background: #1a1a1a;
        color: #ffffff;
    }

.bmv-view-time-small {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.2;
}

.bmv-themes-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* ==========================================
   TABS CONTAINER
   ========================================== */
.bmv-tabs-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.bmv-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.bmv-tab:hover {
    color: #1a1a1a;
    background: #f9fafb;
}

.bmv-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 600;
}

/* ==========================================
   COMPACT QUICK ACTIONS (Per Panel)
   ========================================== */
.bmv-quick-actions-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.bmv-btn-bell-small {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

    .bmv-btn-bell-small:hover:not(:disabled) {
        background: #2d2d2d;
        border-color: #2d2d2d;
    }

    .bmv-btn-bell-small:active:not(:disabled) {
        background: #0f0f0f;
    }

    .bmv-btn-bell-small:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.bmv-btn-news-small {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.bmv-btn-news-small:hover:not(:disabled) {
        background: #2d2d2d;
        border-color: #2d2d2d;
    }

.bmv-btn-news-small:active:not(:disabled) {
        background: #0f0f0f;
    }

    .bmv-btn-news-small:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 155, 77, 0.3);
    }

.bmv-btn-stop-small {
    padding: 0.5rem 0.75rem;
    background: #dc2626;
    color: white;
    border: 1px solid #dc2626;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

    .bmv-btn-stop-small:hover {
        background: #b91c1c;
        border-color: #b91c1c;
    }

    .bmv-btn-stop-small:active {
        background: #991b1b;
    }

.bmv-quick-news-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.bmv-textarea-small {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.8125rem;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

    .bmv-textarea-small:focus {
        outline: none;
        border-color: #9ca3af;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    }

.bmv-quick-news-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.bmv-btn-send {
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .bmv-btn-send:hover:not(:disabled) {
        background: #2d2d2d;
        border-color: #2d2d2d;
    }

    .bmv-btn-send:active:not(:disabled) {
        background: #0f0f0f;
    }

    .bmv-btn-send:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Active Event Indicator - Enterprise */
.bmv-active-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.bmv-event-indicator {
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 500;
}

    .bmv-event-indicator.bellring {
        color: #1a1a1a;
    }

    .bmv-event-indicator.news {
        color: #1a1a1a;
    }

.bmv-event-timer {
    color: #6b7280;
    font-size: 0.75rem;
}

.bmv-event-target {
    color: #6b7280;
    font-size: 0.75rem;
}

/* ==========================================
   COMPACT SCHEDULE (Per Panel)
   ========================================== */
.bmv-schedule-compact {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bmv-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .bmv-schedule-header h4 {
        margin: 0;
        color: #1a1a1a;
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: -0.1px;
        line-height: 1.4;
    }

.bmv-btn-add {
    padding: 0.375rem;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .bmv-btn-add:hover {
        background: #2d2d2d;
        border-color: #2d2d2d;
    }

    .bmv-btn-add:active {
        background: #0f0f0f;
    }

.bmv-events-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

.bmv-event-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    background: #ffffff;
    border-radius: 4px;
    border-left: 2px solid #9ca3af;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    border-left-width: 2px;
}

.bmv-event-row:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

    .bmv-event-row.bellring {
        border-left-color: #9ca3af;
    }

    .bmv-event-row.news {
        border-left-color: #9ca3af;
    }

.bmv-event-time {
    font-weight: 600;
    color: #1a1a1a;
    min-width: 35px;
    font-size: 0.6875rem;
}

.bmv-event-icon {
    font-size: 0.85rem;
}

.bmv-event-name {
    flex: 1;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
}

.bmv-event-actions {
    display: flex;
    gap: 0.15rem;
}

.bmv-btn-mini {
    padding: 0.25rem 0.375rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.6875rem;
    transition: all 0.2s ease;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    line-height: 1;
}

    .bmv-btn-mini:hover {
        background: #f9fafb;
        border-color: #9ca3af;
        color: #1a1a1a;
    }

    .bmv-btn-mini:active {
        background: #f3f4f6;
    }

    .bmv-btn-mini.danger:hover {
        background: #fef2f2;
        border-color: #dc2626;
        color: #dc2626;
    }

.bmv-more-events {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.75rem 0 0 0;
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-weight: 500;
}

.bmv-no-events {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0.75rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 4px;
    border: 1px dashed #d1d5db;
}

/* Compact Modal - Ultra Modern */
.bmv-modal-compact {
    max-width: 480px;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center;
}

.bmv-modal-large {
    max-width: 700px;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center;
}

/* Evita saltos de layout en modales */
.bmv-modal * {
    box-sizing: border-box;
}

.bmv-modal .bmv-form-group,
.bmv-modal .bmv-input,
.bmv-modal .bmv-photos-grid,
.bmv-modal .bmv-media-items {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Asegura que el contenido del modal se renderice con dimensiones estables */
.bmv-modal-body > * {
    width: 100%;
    max-width: 100%;
}

    .bmv-modal-compact .bmv-modal-header {
        background: #1a1a1a;
        border-radius: 12px 12px 0 0;
    }

.bmv-modal-header-playlist {
    background: linear-gradient(135deg, #C4A000 0%, #8B7500 100%) !important;
}

        .bmv-modal-compact .bmv-modal-header h3 {
            color: white;
        }

    .bmv-modal-compact .bmv-modal-close {
        color: rgba(255, 255, 255, 0.7);
    }

        .bmv-modal-compact .bmv-modal-close:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
        }

    .bmv-modal-compact .bmv-modal-body {
        padding: 1.25rem;
        max-height: calc(90vh - 120px); /* Altura del modal menos header y footer */
        overflow-y: auto;
    }

    .bmv-modal-compact .bmv-form-group {
        margin-bottom: 1rem;
    }

        .bmv-modal-compact .bmv-form-group label {
            font-size: 0.85rem;
            color: #333;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

    .bmv-modal-compact .bmv-input {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .bmv-modal-compact .bmv-modal-footer {
        padding: 1rem 1.25rem;
        background: #f8f9fa;
        border-radius: 0 0 12px 12px;
    }

/* Days Selector */
.bmv-days-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.bmv-day-checkbox {
    min-width: 70px;
}

/* Syncfusion Component Overrides for Modals */
.bmv-modal .e-ddl,
.bmv-modal .e-input-group,
.bmv-modal-compact .e-ddl,
.bmv-modal-compact .e-input-group {
    width: 100% !important;
}

    .bmv-modal .e-input-group .e-input,
    .bmv-modal-compact .e-input-group .e-input {
        height: 38px;
        font-size: 0.9rem;
    }

.bmv-modal .e-dropdownlist,
.bmv-modal-compact .e-dropdownlist {
    border-radius: 6px;
}

.bmv-modal .e-timepicker,
.bmv-modal-compact .e-timepicker {
    border-radius: 6px;
}

.bmv-modal .e-checkbox-wrapper,
.bmv-modal-compact .e-checkbox-wrapper {
    margin-right: 0.5rem;
}

    .bmv-modal .e-checkbox-wrapper .e-label,
    .bmv-modal-compact .e-checkbox-wrapper .e-label {
        font-size: 0.9rem;
        color: #333;
    }

/* Checkboxes row in modal */
.bmv-modal .bmv-form-row.bmv-checkboxes,
.bmv-modal-compact .bmv-form-row.bmv-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

/* Dropdown small for quick news */
.bmv-dropdown-small {
    min-width: 80px;
}

    .bmv-dropdown-small .e-input-group {
        height: 32px;
    }

    .bmv-dropdown-small .e-input {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

/* TimePicker styling */
.bmv-timepicker .e-input-group {
    border-radius: 6px;
}

/* Dropdown styling */
.bmv-dropdown .e-input-group {
    border-radius: 6px;
}

/* Number input styling - match Syncfusion components */
.bmv-modal-compact input[type="number"].bmv-input {
    height: 38px;
    padding: 0.5rem 0.75rem;
}

/* Ensure all form controls in modal have same height */
.bmv-modal-compact .bmv-form-group .e-input-group,
.bmv-modal-compact .bmv-form-group .bmv-input {
    height: 38px;
}

/* ==========================================
   PLAYLIST STYLES
   ========================================== */
.bmv-playlist-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.bmv-playlist-info {
    font-size: 0.85rem;
    color: #666;
}

.bmv-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bmv-playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bmv-playlist-item:hover {
    border-color: #003366;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bmv-playlist-item.inactive {
    opacity: 0.5;
    background: #f0f0f0;
}

.bmv-playlist-order {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.bmv-order-num {
    font-weight: 700;
    color: #003366;
    font-size: 0.85rem;
    min-width: 20px;
    text-align: center;
}

.bmv-playlist-icon {
    font-size: 1.5rem;
    min-width: 32px;
    text-align: center;
}

.bmv-playlist-info-main {
    flex: 1;
    min-width: 0;
}

.bmv-playlist-info-main strong {
    display: block;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bmv-playlist-meta {
    font-size: 0.75rem;
    color: #888;
}

.bmv-playlist-url {
    color: #0066CC;
}

.bmv-playlist-status {
    min-width: 40px;
}

.bmv-playlist-actions {
    display: flex;
    gap: 0.25rem;
}

.bmv-playlist-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.bmv-playlist-empty p:first-child {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bmv-playlist-empty p:last-child {
    font-size: 0.85rem;
}


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .bmv-screen-control {
        padding: 1rem;
    }

    .bmv-control-header h1 {
        font-size: 1.25rem;
    }

    .bmv-quick-actions-section {
        grid-template-columns: 1fr;
    }

    .bmv-current-event-banner {
        flex-direction: column;
        text-align: center;
    }

    .bmv-event-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .bmv-schedule-content {
        grid-template-columns: 1fr;
    }

    .bmv-events-table {
        font-size: 0.8rem;
    }

        .bmv-events-table th,
        .bmv-events-table td {
            padding: 0.5rem;
        }

    .bmv-modal {
        max-width: 100%;
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
}

/* ==========================================
   PHOTO SELECTOR STYLES
   ========================================== */
.bmv-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.bmv-photo-item {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bmv-photo-item:hover {
    border-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bmv-photo-item.selected {
    border-color: #1a1a1a;
    background: #f9fafb;
}

.bmv-photo-checkbox {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.bmv-photo-item.selected .bmv-photo-checkbox {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.bmv-photo-checkmark {
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.bmv-photo-preview {
    width: 100%;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    margin-bottom: 0.5rem;
    position: relative;
}

.bmv-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bmv-photo-preview img.loaded {
    opacity: 1;
}

/* Image Loader */
.bmv-image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.bmv-image-loader.hidden {
    display: none;
}

.bmv-loader-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
}

.bmv-loader-text {
    font-size: 0.625rem;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Thumbnail Loader */
.bmv-media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bmv-media-thumbnail.loaded {
    opacity: 1;
}

.bmv-media-preview-small {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bmv-media-loader-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
}

.bmv-media-loader-mini.hidden {
    display: none;
}

/* Photo Placeholder with improved styling */
.bmv-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #9ca3af;
    gap: 0.25rem;
}

.bmv-photo-placeholder-icon {
    font-size: 2rem;
    color: #d1d5db;
}

.bmv-photo-placeholder-text {
    font-size: 0.625rem;
    color: #9ca3af;
    text-align: center;
    font-weight: 500;
}

/* Loading state for photo grid */
.bmv-photos-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bmv-photo-item.loading {
    opacity: 0.6;
}

.bmv-photo-item.loading .bmv-photo-preview {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Error state for failed image loads */
.bmv-photo-preview.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.bmv-photo-error-icon {
    font-size: 1.5rem;
    color: #ef4444;
}

.bmv-photo-error-text {
    font-size: 0.625rem;
    color: #ef4444;
    text-align: center;
    font-weight: 500;
}

/* Skeleton loader for media items */
.bmv-media-item.loading {
    opacity: 0.7;
}

.bmv-media-item.loading .bmv-media-preview-small {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.bmv-media-item.loading .bmv-media-name {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent;
    border-radius: 4px;
    height: 1rem;
    margin-bottom: 0.25rem;
}

/* Improved section preview thumbnails */
.bmv-section-preview-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #f3f4f6;
}

.bmv-section-preview-thumb.loaded {
    opacity: 1;
}

.bmv-section-preview-container {
    position: relative;
    width: 100%;
    height: 80px;
    background: #f3f4f6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bmv-section-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
}

.bmv-section-loader.hidden {
    display: none;
}

.bmv-photo-title {
    font-size: 0.75rem;
    color: #333;
    margin-top: 0.25rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.bmv-photo-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #22C55E;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bmv-photo-delete {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    z-index: 10;
    transition: all 0.2s ease;
}

.bmv-photo-delete:hover {
    background: #EF4444;
    transform: scale(1.1);
}

.bmv-photos-selected-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.bmv-photos-selected-info strong {
    color: #1a1a1a;
    font-weight: 600;
}

.bmv-loading-photos {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.bmv-media-gallery-divider {
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.bmv-media-gallery-divider hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

.bmv-media-gallery-divider p {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.bmv-media-preview-card.available {
    border: 2px dashed #d1d5db;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.bmv-media-preview-card.available:hover {
    border-color: #1a1a1a;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bmv-media-preview-card.in-event {
    border-color: #22C55E;
    background: #f0fdf4;
}

.bmv-media-preview-badge {
    background: #22C55E;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bmv-media-preview-add {
    background: #1a1a1a;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
