/* Heatmap page specific styles */

/* Page Header */
.heatmap-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 15px;
    text-align: center;
}

.heatmap-header h1 {
    font-weight: 300;
    margin-bottom: 15px;
}

.heatmap-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Form Styling */
.heatmap-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Button Styling */
.btn-heatmap {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: var(--bg-secondary);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-heatmap:hover {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    color: var(--bg-secondary);
}

/* Series Info Display */
.series-info {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    margin-bottom: 30px;
}

.series-info h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent-primary);
    padding-bottom: 10px;
}

.list-group-item {
    border: none;
    background: var(--bg-tertiary);
    margin-bottom: 8px;
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-secondary);
}

.list-group-item strong {
    color: var(--text-primary);
    margin-right: 8px;
}

/* Heatmap Image */
.heatmap-container {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    margin-bottom: 30px;
}

.heatmap-container h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent-primary);
    padding-bottom: 10px;
}

.heatmap-img {
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--shadow-medium);
    margin: 24px 0;
    max-width: 100%;
    background: var(--bg-secondary);
    padding: 12px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heatmap-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px var(--shadow-heavy);
}

/* Error Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .heatmap-header {
        padding: 30px 20px;
        margin: 0 15px 20px 15px;
    }
    
    .heatmap-header h1 {
        font-size: 2rem;
    }
    
    .heatmap-form,
    .series-info,
    .heatmap-container {
        margin: 0 15px 20px 15px;
        padding: 20px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-heatmap {
        width: 100%;
        margin-top: 10px;
    }
}

/* Print Styles */
@media print {
    .heatmap-header,
    .heatmap-form,
    .series-info {
        display: none;
    }
    
    .heatmap-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .heatmap-img {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
