* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

header h1 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.auth-section {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.auth-section input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.auth-section button {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.auth-section button:hover {
    background: #2980b9;
}

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

.status.connected {
    background: #2ecc71;
    color: white;
}

.status.disconnected {
    background: #e74c3c;
    color: white;
}

.streams-section, .stream-section, .test-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.streams-section h2, .test-section h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.streams-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stream-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.stream-card:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.stream-card h3 {
    margin-bottom: 8px;
    color: #2c3e50;
}

.stream-card p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
}

.stream-card .viewers {
    color: #e74c3c;
    font-weight: bold;
    font-size: 12px;
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.stream-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stream-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
}

.video-container {
    background: #000;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.video-grid {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.host-video-container {
    position: relative;
    flex: 1;
    min-height: 300px;
}

.host-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1a1a1a;
}

.video-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.viewer-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.viewer-video {
    position: relative;
    width: 100px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.viewer-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.video-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.video-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-btn.active {
    background: #007bff;
}

.video-btn.disabled {
    background: #dc3545;
}

.connection-quality {
    color: #28a745;
    font-size: 16px;
    margin-left: 8px;
}

.connection-quality.poor {
    color: #dc3545;
}

.connection-quality.fair {
    color: #ffc107;
}

.livekit-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.livekit-status.connected {
    background: rgba(40, 167, 69, 0.8);
}

.livekit-status.connecting {
    background: rgba(255, 193, 7, 0.8);
}

.livekit-status.error {
    background: rgba(220, 53, 69, 0.8);
}

.chat-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.comments-section {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #fafafa;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

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

.comment-user {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.comment-time {
    color: #7f8c8d;
    font-size: 12px;
}

.comment-content {
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.like-btn {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.like-btn.liked {
    color: #e74c3c;
}

.like-btn:hover {
    color: #e74c3c;
}

.typing-indicator {
    padding: 10px 15px;
    background: #ecf0f1;
    font-style: italic;
    color: #7f8c8d;
    font-size: 12px;
}

.comment-input-section {
    padding: 15px;
    border-top: 1px solid #ddd;
    background: white;
}

.comment-input-section input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.comment-input-section button {
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.comment-input-section button:hover {
    background: #2980b9;
}

.reactions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.reaction-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.reaction-btn:hover {
    transform: scale(1.1);
    border-color: #3498db;
}

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

.test-controls h3 {
    grid-column: 1 / -1;
    margin: 15px 0 10px 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.test-controls input, .test-controls button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.test-controls button {
    background: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
}

.test-controls button:hover {
    background: #229954;
}

.reactions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.floating-reaction {
    position: absolute;
    font-size: 24px;
    animation: floatUp 3s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

@media (max-width: 768px) {
    .stream-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .video-container {
        height: 250px;
    }
    
    .chat-container {
        height: 400px;
    }
    
    .auth-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .auth-section input, .auth-section button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Admin Dashboard Styles */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #555;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.login-btn {
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background: #2980b9;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    padding: 10px;
    background: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 14px;
}

.admin-dashboard {
    min-height: 100vh;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

.admin-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-controls span {
    font-weight: 500;
    color: white;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Navigation Styles */
.admin-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-item {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: #f8f9fa;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-text {
    font-size: 0.95rem;
}

/* Page Layout */
.admin-main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.admin-page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.admin-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
}

.page-description {
    margin: 0.5rem 0 0 0;
    color: #6c757d;
    font-size: 1rem;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-overview {
    margin-bottom: 30px;
}

/* Dashboard Page Specific Styles */
.stat-trend {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-indicator {
    font-size: 1rem;
}

.trend-text {
    color: #6c757d;
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 2rem;
}

.quick-actions-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.quick-action-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.action-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.action-content p {
    margin: 0 0 0.5rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.action-count {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
}

/* Recent Activity Section */
.recent-activity-section {
    margin-bottom: 2rem;
}

.recent-activity-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.activity-list {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.activity-time {
    margin: 0;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Settings Page Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.settings-section h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.setting-item input,
.setting-item select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.setting-item input:focus,
.setting-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-item small {
    color: #6c757d;
    font-size: 0.8rem;
}

.data-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.utility-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.utility-card h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.health-indicators,
.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.health-item,
.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.health-item:last-child,
.metric-item:last-child {
    border-bottom: none;
}

.health-label,
.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.health-status {
    font-size: 1.2rem;
}

.health-status.online {
    color: #28a745;
}

.health-status.offline {
    color: #dc3545;
}

.metric-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }

    .nav-item {
        flex: none;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .quick-action-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .data-actions {
        flex-direction: column;
    }

    .utility-grid {
        grid-template-columns: 1fr;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
}

.streams-management {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 20px;
}

.section-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.streams-table-container {
    overflow-x: auto;
}

.streams-table {
    width: 100%;
    border-collapse: collapse;
}

.streams-table th,
.streams-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.streams-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live {
    background: #d4edda;
    color: #155724;
}

.status-scheduled {
    background: #fff3cd;
    color: #856404;
}

.status-ended {
    background: #f8d7da;
    color: #721c24;
}

.status-blocked {
    background: #f5c6cb;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

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

.btn-warning:hover {
    background: #e67e22;
}

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

.btn-danger:hover {
    background: #c0392b;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #95a5a6 !important;
}

.btn:disabled:hover {
    background: #95a5a6 !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fullscreen modal override for flash deal details */
#flashDealDetailsModal {
    justify-content: flex-start;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 20px;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
}

.video-section {
    margin-bottom: 30px;
}

.video-container {
    position: relative;
}

.video-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

.stream-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-section h4,
.chat-section h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.info-section p {
    margin-bottom: 8px;
    color: #555;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.admin-message-form {
    display: flex;
    gap: 10px;
}

.admin-message-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-main {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .streams-table-container {
        font-size: 14px;
    }

    .streams-table th,
    .streams-table td {
        padding: 10px;
    }

    .stream-info-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .video-section video {
        max-height: 250px;
    }

    .lto-details {
        grid-template-columns: 1fr;
    }

    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* LTO Management Styles */
.lto-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.lto-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.active-ltos {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    background: #fafafa;
}

.lto-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lto-item:last-child {
    margin-bottom: 0;
}

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

.lto-product-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.lto-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.lto-status.active {
    background: #d4edda;
    color: #155724;
}

.lto-status.expiring {
    background: #fff3cd;
    color: #856404;
}

.lto-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.lto-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

.offer-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.lto-timer {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.lto-timer.expiring {
    color: #e74c3c;
    font-weight: 600;
}

.lto-analytics-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 11px;
    text-align: center;
}

.lto-analytics-mini .metric {
    background: #f8f9fa;
    padding: 4px;
    border-radius: 4px;
}

.lto-analytics-mini .metric-value {
    font-weight: 600;
    color: #2c3e50;
}

.lto-analytics-mini .metric-label {
    color: #666;
    font-size: 10px;
}

.lto-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.lto-actions .btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
}

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

.analytics-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.analytics-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.analytics-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-ltos {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Info message styles */
.info-message {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-message h3 {
    margin-top: 0;
    color: #495057;
}

.info-message p {
    margin-bottom: 10px;
    color: #6c757d;
}

.info-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-message li {
    margin-bottom: 5px;
    color: #6c757d;
}

.status-info {
    background: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.status-info p {
    margin-bottom: 8px;
}

.status-info strong {
    color: #495057;
}

/* Payment Analytics Styles */
.payment-analytics {
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

.payment-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card.payment-stat {
    position: relative;
    overflow: hidden;
}

.stat-card.payment-stat.alert {
    border-left: 4px solid #f59e0b;
}

.stat-card.payment-stat.warning {
    border-left: 4px solid #ef4444;
}

.stat-change {
    font-size: 14px;
    color: #10b981;
    margin-top: 5px;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-count {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.status-indicator {
    font-size: 8px;
    transition: color 0.3s ease;
}

.status-indicator.online {
    color: #10b981;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    color: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.chart-container {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.chart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.chart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    color: #6b7280;
}

.chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.chart-wrapper canvas {
    max-width: 280px;
    max-height: 280px;
}

.chart-legend {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #374151;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-value {
    font-weight: 600;
    margin-left: 4px;
}

.last-updated {
    font-style: italic;
    color: #9ca3af;
}

/* Payment Actions */
.payment-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.action-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.btn-icon {
    font-size: 16px;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

/* Chart Loading State */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    color: #6b7280;
    font-style: italic;
}

.chart-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Chart Error State */
.chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    color: #ef4444;
    font-style: italic;
    flex-direction: column;
    gap: 10px;
}

.chart-error-icon {
    font-size: 24px;
}

/* Responsive Design for Charts */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-container {
        padding: 15px;
    }

    .chart-wrapper canvas {
        max-width: 250px;
        max-height: 250px;
    }

    .payment-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        justify-content: center;
    }
}

/* Notification Styles for Real-time Updates */
.payment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1f2937;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.payment-notification.show {
    transform: translateX(0);
}

.payment-notification.success {
    background: #10b981;
}

.payment-notification.warning {
    background: #f59e0b;
}

.payment-notification.error {
    background: #ef4444;
}

/* Payment Session Management Styles */
.payment-session-management {
    margin-top: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-session-management h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.session-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.session-stats .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.session-stats .stat-card h4 {
    font-size: 0.9em;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-stats .stat-number {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 8px;
}

.session-stats .stat-description {
    font-size: 0.8em;
    opacity: 0.8;
}

.session-actions {
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.session-actions h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.session-actions .action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.session-actions .action-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.session-actions .action-description p {
    margin-bottom: 8px;
    font-size: 0.9em;
    line-height: 1.5;
}

.session-actions .action-description p:last-child {
    margin-bottom: 0;
}

#clearAllSessionsBtn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    transition: all 0.3s ease;
}

#clearAllSessionsBtn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

#refreshSessionStatsBtn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    transition: all 0.3s ease;
}

#refreshSessionStatsBtn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Enhanced Session Management Styles */
.session-controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.controls-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2em;
}

.control-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 140px;
}

/* Sessions Table Styles */
.sessions-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.sessions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sessions-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sessions-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

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

.sessions-table tbody tr:last-child td {
    border-bottom: none;
}

/* Session Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.underpaid {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.overpaid {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.expired {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.closed {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Session Action Buttons */
.session-action-btn {
    padding: 4px 8px;
    margin: 2px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-action-btn.view {
    background: #007bff;
    color: white;
}

.session-action-btn.view:hover {
    background: #0056b3;
}

.session-action-btn.expire {
    background: #ffc107;
    color: #212529;
}

.session-action-btn.expire:hover {
    background: #e0a800;
}

.session-action-btn.delete {
    background: #dc3545;
    color: white;
}

.session-action-btn.delete:hover {
    background: #c82333;
}

/* Auto Refresh Toggle */
#autoRefreshToggle[data-auto="true"] {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

#autoRefreshToggle[data-auto="true"]:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

/* Session Details Modal Styles */
.session-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.session-info-section,
.payment-info-section,
.timing-info-section,
.partial-payments-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.session-info-section h4,
.payment-info-section h4,
.timing-info-section h4,
.partial-payments-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
}

.info-item span {
    color: #212529;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.partial-payments-list {
    max-height: 200px;
    overflow-y: auto;
}

.partial-payment-item {
    background: white;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    font-size: 12px;
}

.partial-payment-item:last-child {
    margin-bottom: 0;
}

/* Clear Expired Sessions Button */
#clearExpiredSessionsBtn {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border: none;
    transition: all 0.3s ease;
}

#clearExpiredSessionsBtn:hover {
    background: linear-gradient(135deg, #fd7e14, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Session Management Responsive Design */
@media (max-width: 768px) {
    .session-stats {
        grid-template-columns: 1fr;
    }

    .controls-header {
        flex-direction: column;
        align-items: stretch;
    }

    .control-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sessions-table-container {
        overflow-x: auto;
    }

    .sessions-table {
        min-width: 800px;
    }

    .session-details-grid {
        grid-template-columns: 1fr;
    }

    .session-info-section,
    .payment-info-section,
    .timing-info-section,
    .partial-payments-section {
        margin-bottom: 15px;
    }

    .session-actions .action-buttons {
        flex-direction: column;
    }
}

/* Admin Actions Section */
.admin-actions-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Promo Banner Management Styles */
.promo-banners-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Drag and Drop Styles */
.banner-row {
    cursor: move;
    transition: all 0.2s ease;
}

.banner-row:hover {
    background-color: #f8f9fa;
}

.banner-row.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    background-color: #e3f2fd;
}

.banner-row.drag-over {
    border-top: 3px solid #2196F3;
    background-color: #f3e5f5;
}

.drag-handle {
    cursor: grab;
    color: #666;
    font-size: 16px;
    padding: 8px;
    text-align: center;
    user-select: none;
}

.drag-handle:hover {
    color: #2196F3;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Dimension Selection Styles */
.dimension-selection {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.dimension-selection h5 {
    margin: 0 0 1rem 0;
    color: #333;
    font-weight: 600;
}

.dimension-options {
    margin-bottom: 1.5rem;
    text-align: center;
}

.skip-cropping-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.skip-cropping-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
}

.or-divider {
    margin: 1rem 0;
    position: relative;
    text-align: center;
}

.or-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.or-divider span {
    background: #f9f9f9;
    padding: 0 1rem;
    color: #666;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.crop-option-text {
    margin: 0.5rem 0;
    color: #666;
    font-style: italic;
}

.dimension-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dimension-preset {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-align: center;
}

.dimension-preset:hover {
    border-color: #2196F3;
    background-color: #f0f8ff;
}

.dimension-preset.active {
    border-color: #2196F3;
    background-color: #e3f2fd;
    color: #1976D2;
    font-weight: 600;
}

.custom-dimensions {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.custom-dimensions label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dimension-inputs input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.dimension-inputs span {
    font-weight: bold;
    color: #666;
}

/* Image Cropping Styles */
.image-cropping {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.image-cropping h5 {
    margin: 0 0 1rem 0;
    color: #333;
    font-weight: 600;
}

.crop-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
}

.crop-canvas {
    max-width: 100%;
    max-height: 400px;
    border: 2px dashed #2196F3;
    cursor: crosshair;
}

.crop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.crop-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #666;
}

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

.crop-actions .btn {
    padding: 0.5rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dimension-presets {
        grid-template-columns: 1fr;
    }

    .dimension-inputs {
        justify-content: center;
    }

    .crop-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .crop-actions {
        justify-content: center;
    }
}

.position-overview {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.position-overview h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 100%;
}

.position-slot {
    aspect-ratio: 1;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 100px;
}

.position-slot.occupied {
    border: 2px solid #28a745;
    background: #f8fff9;
}

.position-slot.occupied:hover {
    border-color: #20c997;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.position-slot.empty {
    border-color: #dee2e6;
    background: #f8f9fa;
}

.position-slot.empty:hover {
    border-color: #6c757d;
    background: #e9ecef;
}

.position-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.position-slot.occupied .position-number {
    color: #28a745;
}

.position-preview {
    width: 60px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

.position-status {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.25rem;
}

.position-slot.occupied .position-status {
    color: #28a745;
    font-weight: 500;
}

.banners-list {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banners-list h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.banners-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.banners-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.banners-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.banners-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

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

.banner-preview-cell {
    width: 100px;
}

.banner-preview-img {
    width: 80px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.position-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.banner-url {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    font-size: 0.85rem;
    color: #6c757d;
}

.banner-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.banner-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.no-data-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.no-data-message p {
    margin: 0;
    font-size: 1.1rem;
}

/* Promo Banner Modal Styles */
.promo-banner-modal-content {
    max-width: 600px;
    width: 90%;
}

.promo-banner-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.banner-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
}

.banner-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-size-info {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
    width: 0%;
}

.warning-message {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design for Promo Banners */
@media (max-width: 768px) {
    .position-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .position-slot {
        min-height: 80px;
    }

    .position-preview {
        width: 50px;
        height: 25px;
    }

    .banners-table-container {
        overflow-x: auto;
    }

    .banners-table {
        min-width: 600px;
    }

    .banner-url {
        max-width: 150px;
    }

    .banner-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .promo-banner-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }
}

.admin-actions-section h4 {
    margin-bottom: 15px;
    color: #dc3545;
    font-weight: 600;
}

.admin-actions-grid {
    display: grid;
    gap: 15px;
}

.action-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-group label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.input-group input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.standard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Hijack-specific styling */
#hijackSessionBtn {
    background: #dc3545;
    color: white;
}

#hijackSessionBtn:hover {
    background: #c82333;
}

#setAmountBtn {
    background: #ffc107;
    color: #212529;
}

#setAmountBtn:hover {
    background: #e0a800;
}

/* Warning styling for dangerous actions */
.admin-actions-section::before {
    content: "⚠️ Admin Override Actions - Use with extreme caution";
    display: block;
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid #ffeaa7;
}

/* Flash Deals Management Styles */
.flash-deals-stats {
    margin-bottom: 30px;
}

.flash-deals-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.flash-deals-table {
    width: 100%;
    border-collapse: collapse;
}

.flash-deals-table th,
.flash-deals-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.flash-deals-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.flash-deals-table tbody tr:hover {
    background: #f8f9fa;
}

.flash-deals-table .banner-cell {
    text-align: center;
    vertical-align: middle;
}

.flash-deals-table .banner-image {
    width: 50px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
}

.flash-deals-table .banner-image:hover {
    transform: scale(1.5);
    z-index: 10;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.flash-deal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Flash Deal Details Modal Styles */
.flash-deal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    height: 100%;
}

.flash-deal-details-grid .products-section {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.deal-info-section,
.timing-section,
.performance-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.deal-info-section h4,
.timing-section h4,
.performance-section h4,
.products-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.banner-item {
    grid-column: 1 / -1;
}

.banner-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.info-item span {
    color: #666;
    font-size: 14px;
}

/* Flash Deal Modal Header */
.flash-deal-modal-content .modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    flex-shrink: 0;
}

.flash-deal-modal-content .modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.flash-deal-modal-content .modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.flash-deal-modal-content .close {
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
}

.flash-deal-modal-content .close:hover {
    color: #333;
}

.flash-deal-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* Flash Deal Modal Styles */
.flash-deal-modal-content {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.flash-deal-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.form-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group select[multiple] {
    min-height: 100px;
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    cursor: pointer;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
}

.checkmark {
    margin-left: 8px;
}

.banner-preview {
    margin-top: 15px;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    background: white;
}

.banner-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.banner-preview button {
    margin-top: 10px;
}

/* File input styling */
#flashDealBanner {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Validation error styling */
.validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Disabled field styling */
input:disabled {
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

input:disabled + small {
    color: #6c757d;
    font-style: italic;
}

/* Hide start date help text by default */
#startDateHelp {
    display: none;
}

/* Flash Deal Details Modal */
.flash-deal-details-grid {
    display: grid;
    gap: 25px;
}

.deal-info-section,
.timing-info-section,
.performance-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.deal-info-section h4,
.timing-info-section h4,
.performance-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #28a745;
    padding-bottom: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.products-section {
    grid-column: 1 / -1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.products-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 8px;
}

.products-table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

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

.products-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 1;
}

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

/* Status badges for flash deals */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.scheduled {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.draft {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.ended {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Responsive adjustments for flash deals */
@media (max-width: 768px) {
    .flash-deal-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .flash-deals-table-container {
        overflow-x: auto;
    }

    .flash-deals-table {
        min-width: 900px;
    }

    .flash-deal-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
