/* Shadow Visualization Styles */

.shadow-viz {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.viz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.viz-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.viz-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Controls */
.controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.9;
}

.control-group input {
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    min-width: 150px;
}

.control-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.analyze-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left-color: #fff;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

/* Results */
.results {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
}

.timeline-container {
    margin-bottom: 3rem;
}

.timeline-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.timeline {
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-segment {
    height: 100%;
    float: left;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-segment.sun {
    background: linear-gradient(45deg, #f39c12, #f1c40f);
}

.timeline-segment.shadow {
    background: linear-gradient(45deg, #34495e, #2c3e50);
}

.timeline-segment.night {
    background: linear-gradient(45deg, #2c3e50, #1a1a2e);
}

.timeline-segment:hover {
    transform: scaleY(1.1);
    z-index: 2;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Summary */
.summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Details Table */
.details {
    margin-top: 2rem;
}

.details h3 {
    margin-bottom: 1rem;
}

.details-table {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

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

.details-table th,
.details-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.details-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.details-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-sun {
    color: #f1c40f;
    font-weight: 600;
}

.status-shadow {
    color: #95a5a6;
    font-weight: 600;
}

.status-night {
    color: #34495e;
    font-weight: 600;
}

/* Error */
.error {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.error h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Active nav link */
.nav-links a.active {
    color: #f1c40f;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group input,
    .analyze-btn {
        width: 100%;
        min-width: unset;
    }
    
    .viz-header h1 {
        font-size: 2rem;
    }
    
    .timeline-labels {
        font-size: 0.8rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr 1fr;
    }
} 