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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Dark login page override */
body:has(.login-container) {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000000 100%);
    color: #ffffff;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.login-box {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    min-width: 350px;
    position: relative;
    z-index: 1;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.login-box h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-box h2 {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
}

.security-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    animation: pulse 2s infinite;
}

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

.security-text {
    color: rgba(0, 255, 0, 0.9);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.login-box input {
    width: 100%;
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

.login-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: normal;
}

.login-box input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.login-box input:focus + .input-line {
    width: 100%;
}

.login-box button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.login-box button:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.login-box button:active {
    transform: scale(0.98);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.login-box button:hover .button-arrow {
    transform: translateX(5px);
}


.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dashboard Styles */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

header h1 {
    color: #ffffff;
    font-weight: 600;
}

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

.auth-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #ffffff;
}

.auth-status.authenticated {
    border-color: rgba(72, 187, 120, 0.5);
    background: rgba(72, 187, 120, 0.1);
    color: #68d391;
}

.auth-status.unauthenticated {
    border-color: rgba(229, 62, 62, 0.5);
    background: rgba(229, 62, 62, 0.1);
    color: #fc8181;
}

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

.logout-btn, .login-btn {
    padding: 0.5rem 1rem;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.logout-btn {
    background: rgba(229, 62, 62, 0.8);
    border: 1px solid rgba(229, 62, 62, 0.3);
}


.login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


main {
    height: calc(100vh - 160px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    height: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.unified-tools-section {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.unified-tools-section h2 {
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feature-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    color: #ffffff;
}

.feature-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.content-area {
    position: relative;
    height: 100%;
}

.content-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
    color: #ffffff;
}

.content-panel.active {
    display: flex;
    flex-direction: column;
}

#console-panel {
    /* Inherits from .output-section styles */
}

.automation-buttons,
.chess-tool-buttons,
.script-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.script-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    color: #ffffff;
}


.script-btn.running {
    background: rgba(229, 62, 62, 0.1);
    border-color: rgba(252, 129, 129, 0.3);
    cursor: not-allowed;
}

.script-btn .icon {
    font-size: 1.5rem;
}

.output-section {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-header h2 {
    color: #ffffff;
}

.output-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}


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

.output-log {
    flex: 1;
    padding: 1.5rem 2rem;
    background: #1a1a1a;
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-y: auto;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.log-timestamp {
    color: #9ca3af;
    margin-right: 0.5rem;
}

.log-info { color: #60a5fa; }
.log-success { color: #34d399; }
.log-warning { color: #fbbf24; }
.log-error { color: #f87171; }

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Chess Puzzle Panel Styles */
#chess-puzzle-panel {
    padding: 2rem;
    overflow-y: auto;
}

.puzzle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.puzzle-header h2 {
    color: #ffffff;
}

.puzzle-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.puzzle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.puzzle-board {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.puzzle-board img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.puzzle-board img.loaded {
    display: block;
}

.puzzle-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.puzzle-board.loaded .puzzle-loading {
    display: none;
}

.puzzle-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.puzzle-metadata {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.difficulty-badge.easy {
    background: #c6f6d5;
    color: #22543d;
}

.difficulty-badge.medium {
    background: #feefb3;
    color: #744210;
}

.difficulty-badge.hard {
    background: #fed7d7;
    color: #742a2a;
}

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

.action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}


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

.twitter-btn {
    background: #1da1f2;
}

.twitter-btn:hover:not(:disabled) {
    background: #1a91da;
}

.twitter-preview {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.twitter-preview h3 {
    color: #4a5568;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.tweet-text {
    color: #2d3748;
    line-height: 1.5;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.puzzle-video-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.puzzle-video-section h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.puzzle-video-section .section-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.puzzle-video-actions {
    margin-bottom: 1.5rem;
}

.puzzle-video-progress {
    margin-top: 1rem;
}

.puzzle-video-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(46, 125, 50, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.puzzle-video-results h4 {
    color: #4caf50;
    margin-bottom: 1rem;
}

.video-results-info {
    margin-bottom: 1rem;
}

.video-results-info p {
    margin: 0.5rem 0;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.video-results-info strong {
    color: #ffffff;
}

.video-results-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.status-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.status-message.success {
    background: #c6f6d5;
    color: #22543d;
    display: block;
}

.status-message.error {
    background: #fed7d7;
    color: #742a2a;
    display: block;
}

/* Responsive Design */
@media (max-width: 968px) {
    .puzzle-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    main {
        height: auto;
    }
    
    .content-panel {
        position: relative;
        min-height: 60vh;
    }
    
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .puzzle-actions {
        flex-direction: column;
    }
    
    .url-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .url-input-section {
        padding: 0.75rem;
    }
}

/* n8n Workflows Panel Styles */
.n8n-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.n8n-header h2 {
    color: #2d3748;
    font-size: 1.5rem;
}

.n8n-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #667eea;
}

.n8n-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.n8n-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.danger-btn {
    background: #e53e3e !important;
    color: white !important;
}

.danger-btn:hover {
    background: #c53030 !important;
}

.n8n-logs {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.logs-header h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.log-entry {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s ease;
}

.log-entry:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.log-entry.success {
    border-left-color: #48bb78;
}

.log-entry.error {
    border-left-color: #e53e3e;
}

.log-entry.pending {
    border-left-color: #ed8936;
}

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

.log-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

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

.log-duration {
    font-size: 0.875rem;
    color: #718096;
    font-weight: normal;
}

.log-timestamp {
    font-size: 0.875rem;
    color: #a0aec0;
}

.log-data {
    background: #f7fafc;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #4a5568;
    margin-top: 0.5rem;
}

.data-item {
    display: inline-block;
    margin-right: 1rem;
}

.log-error {
    background: #fed7d7;
    color: #c53030;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.logs-loading, .no-logs, .error-message {
    text-align: center;
    padding: 2rem;
    color: #718096;
}

.no-logs {
    background: white;
    border-radius: 6px;
    border: 2px dashed #e2e8f0;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    border-radius: 6px;
}

/* Canadian Scraper Panel Styles */
.scraper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.scraper-header h2 {
    color: #2d3748;
    font-size: 1.5rem;
}

.scraper-stats {
    display: flex;
    gap: 2rem;
}

.scraper-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.scraper-info {
    margin-bottom: 2rem;
}

.scraper-info h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.scraper-info p {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.scraper-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.scraper-info li {
    color: #4a5568;
    padding: 0.25rem 0;
}

.scraper-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.primary-btn {
    background: rgba(72, 187, 120, 0.8) !important;
    color: white !important;
    border-color: rgba(72, 187, 120, 0.5) !important;
}


.secondary-btn {
    background: rgba(160, 174, 192, 0.8) !important;
    color: white !important;
    border-color: rgba(160, 174, 192, 0.5) !important;
}


.scraper-output {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.output-header h3 {
    color: #2d3748;
    font-size: 1.1rem;
    margin: 0;
}

.output-controls {
    display: flex;
    gap: 0.5rem;
}

.scraper-log {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.log-placeholder {
    color: #a0aec0;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f7fafc;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.info {
    color: #2d3748;
}

.log-entry.success {
    color: #38a169;
}

.log-entry.error {
    color: #e53e3e;
}

.log-entry.warning {
    color: #ed8936;
}

.log-entry.data {
    color: #667eea;
    padding-left: 1rem;
}

.log-entry .timestamp {
    color: #a0aec0;
    font-size: 0.8rem;
}

.results-header {
    background: #667eea;
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.results-header h4 {
    margin: 0;
    font-size: 1rem;
}

.tournament-result {
    background: #f7fafc;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #667eea;
}

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

.tournament-date {
    color: #667eea;
    font-weight: bold;
    font-size: 0.9rem;
}

.tournament-details {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Template Selection Section */
.template-selection-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

.template-selection-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e40af;
}

.template-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dbeafe;
    border-radius: 8px;
    background: white;
    color: #1e40af;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
}

.template-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* URL Input Section */
.url-input-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.url-input-section label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.url-input {
    width: calc(100% - 140px);
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    background: white;
    color: #2d3748;
    margin-right: 0.5rem;
}

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

.small-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

/* Navigation Options */
.navigation-options {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.navigation-options h4 {
    color: #4a5568;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.options-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.option-item {
    flex: 1;
    min-width: 200px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.option-item label:not(.checkbox-label) {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.depth-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

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

.option-item small {
    display: block;
    color: #718096;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Daily Chess Blog Panel Styles */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.blog-header h2 {
    margin: 0;
    color: white;
}

.blog-stats {
    display: flex;
    gap: 1.5rem;
}

.blog-container {
    padding: 1.5rem;
}

.blog-input-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.blog-input-section h3 {
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.section-description {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.input-group label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.blog-input {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    color: #2d3748;
    transition: all 0.2s ease;
}

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

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

.blog-results-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.results-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.results-controls {
    display: flex;
    gap: 0.5rem;
}

.results-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.results-placeholder {
    text-align: center;
    padding: 2rem;
    color: #718096;
}

.results-placeholder .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.blog-article-entry {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.blog-article-entry:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-article-entry.success {
    border-left: 4px solid #48bb78;
}

.blog-article-entry.error {
    border-left: 4px solid #f56565;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.article-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.article-title strong {
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.4;
}

.article-status {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.article-timestamp {
    color: #718096;
    font-size: 0.875rem;
    white-space: nowrap;
}

.article-metadata {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.meta-item {
    color: #4a5568;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.view-article-btn, .copy-article-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    color: #4a5568;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-article-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.copy-article-btn:hover {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

/* Modal Styles */
.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;
    animation: modalFadeIn 0.2s ease;
}

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

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.2s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #4a5568;
}

.article-content {
    line-height: 1.6;
    color: #2d3748;
}

.article-content h1 {
    color: #2d3748;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.5rem;
}

.article-content h2 {
    color: #4a5568;
    margin: 1.25rem 0 0.5rem 0;
    font-size: 1.25rem;
}

.article-content h3 {
    color: #4a5568;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.article-content p {
    margin: 0.75rem 0;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8f9fa;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.modal-footer button:first-child {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.modal-footer button:hover {
    background: #2d3748;
    color: white;
    border-color: #2d3748;
}

/* Responsive adjustments for blog */
/* Chess Board Styles */
.chess-board-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1rem;
}

.board-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chessboard {
    width: 400px !important;
    max-width: 400px;
    margin: 0 auto;
}

/* Override chessboard.js default sizing */
#chessboard {
    width: 400px !important;
    height: 400px !important;
}

#chessboard .board-b72b1 {
    width: 400px !important;
    height: 400px !important;
}

.fen-input-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fen-input-section h4 {
    margin-bottom: 0.5rem;
    color: #4fc3f7;
}

.input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fen-input {
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-family: monospace;
    font-size: 0.9rem;
}

.fen-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 4px;
    color: #81c784;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-status, .move-history, .position-output, .future-features {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-status h3, .move-history h3, .position-output h3, .future-features h3 {
    margin-bottom: 0.75rem;
    color: #4fc3f7;
    font-size: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
}

.status-item label {
    font-weight: 500;
    color: #b0b0b0;
}

.turn-indicator.white {
    color: #ffffff;
    font-weight: bold;
}

.turn-indicator.black {
    color: #666666;
    font-weight: bold;
}

.check-status.in-check {
    color: #f44336;
    font-weight: bold;
}

.game-status-text.checkmate {
    color: #f44336;
    font-weight: bold;
}

.game-status-text.draw {
    color: #ff9800;
    font-weight: bold;
}

.move-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.move-row {
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.move-row:last-child {
    border-bottom: none;
}

.output-section {
    margin-bottom: 1rem;
}

.output-section h4 {
    margin-bottom: 0.5rem;
    color: #81c784;
    font-size: 0.9rem;
}

.output-textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-family: monospace;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 0.5rem;
}

/* Smaller copy buttons */
#copyFenBtn, #copyPgnBtn {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
    min-width: auto !important;
}

#copyFenBtn .icon, #copyPgnBtn .icon {
    font-size: 0.7rem;
}

/* Analysis button and results */
.analysis-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.analysis-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    transform: translateY(-1px);
}

.analysis-btn:disabled {
    background: rgba(102, 126, 234, 0.5) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.analysis-results {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.analysis-results h3 {
    margin-bottom: 0.75rem;
    color: #667eea;
    font-size: 1rem;
}

.analysis-results h4 {
    margin-bottom: 0.5rem;
    color: #81c784;
    font-size: 0.9rem;
}

.top-moves-section {
    margin-top: 1rem;
}

.top-moves-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0.5rem;
}

.top-move-item {
    display: grid;
    grid-template-columns: 30px 100px 1fr;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

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

.top-move-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.move-rank {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.move-notation {
    font-family: monospace;
    font-weight: bold;
    color: #4fc3f7;
    font-size: 1.1rem;
}

.move-eval {
    font-family: monospace;
    font-weight: bold;
    font-size: 1rem;
    text-align: right;
}

.eval-mate {
    color: #ff4444;
}

.eval-winning {
    color: #4caf50;
}

.eval-advantage {
    color: #8bc34a;
}

.eval-balanced {
    color: #ffc107;
}

.eval-losing {
    color: #f44336;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
}

.analysis-item label {
    font-weight: 500;
    color: #b0b0b0;
}

.eval-score {
    font-weight: bold;
    font-family: monospace;
    font-size: 1.1rem;
}

.eval-score.mate {
    color: #ff4444;
}

.eval-score.winning {
    color: #4caf50;
}

.eval-score.advantage {
    color: #8bc34a;
}

.eval-score.balanced {
    color: #ffc107;
}

.eval-score.losing {
    color: #f44336;
}

.best-move {
    font-family: monospace;
    font-weight: bold;
    color: #4fc3f7;
    font-size: 1.1rem;
}

.analysis-depth {
    font-family: monospace;
    color: #81c784;
}

.analysis-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.analysis-status.analyzing {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.analysis-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.analysis-status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.future-features .feature-placeholder {
    opacity: 0.6;
    font-style: italic;
}

.future-features .feature-placeholder p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Chess board header controls */
.chess-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.game-controls {
    display: flex;
    gap: 0.5rem;
}

/* Responsive chess board */
@media (max-width: 1200px) {
    .chess-board-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chessboard {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-actions {
        flex-direction: column;
    }
    
    .article-metadata {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .chess-board-container {
        padding: 0.5rem;
    }
    
    .chessboard {
        max-width: 300px;
    }
    
    .game-controls {
        flex-wrap: wrap;
    }
    
    .fen-presets {
        flex-direction: column;
    }
}

/* Image to FEN Panel Styles */
.image-fen-header {
    margin-bottom: 2rem;
}

.image-fen-header h2 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.image-fen-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.upload-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-area {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.upload-area.drag-over {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 3rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 4px;
}

.upload-requirements {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.upload-requirements h4 {
    color: #FFC107;
    margin-bottom: 0.5rem;
}

.upload-requirements ul {
    list-style: none;
    padding-left: 1.5rem;
}

.upload-requirements li {
    margin-bottom: 0.25rem;
    position: relative;
}

.upload-requirements li::before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: #FFC107;
}

.results-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fen-results {
    display: none;
}

.fen-display {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.fen-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.board-preview {
    margin-top: 1.5rem;
}

.board-display {
    margin-top: 0.5rem;
}

.fen-board-table {
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.fen-board-table td {
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    cursor: default;
    position: relative;
}

.light-square {
    background-color: #F0D9B5;
}

.dark-square {
    background-color: #B58863;
}

.w-piece {
    color: #ffffff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.b-piece {
    color: #000000;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.conversion-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.conversion-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.loading-message {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .image-fen-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   VIDEO GENERATOR STYLES
   ============================================ */

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #2c5aa0;
}

.video-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

.video-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-input-section {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
}

.pgn-textarea {
    width: 100%;
    min-height: 150px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #e0e0e0;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.pgn-textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.video-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.video-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.video-progress-section {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
}

.progress-container {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5aa0, #3066be);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.progress-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #3a3a3a;
}

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

.detail-item label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
}

.detail-item span {
    font-size: 1rem;
    color: #e0e0e0;
    font-weight: 600;
}

.job-id {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem !important;
}

.video-results-section {
    background: #2a5a2a;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #4caf50;
}

.video-results-section h3 {
    color: #4caf50;
    margin-bottom: 1rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.results-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.results-info p {
    margin: 0.5rem 0;
    color: #e0e0e0;
}

.status-message {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
}

.status-message.status-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-message.status-error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-message.status-info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

/* Responsive adjustments for video generator */
@media (max-width: 768px) {
    .video-options-grid {
        grid-template-columns: 1fr;
    }

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

    .video-actions,
    .results-actions {
        flex-direction: column;
    }

    .video-actions button,
    .results-actions button {
        width: 100%;
    }
}