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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.city-selector {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.selection-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 280px;
}

.selection-step label {
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    padding: 12px 20px;
    font-size: 1em;
    border: none;
    border-radius: 10px;
    background: white;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
}

.search-input:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.search-input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    display: none;
}

.suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    color: #333;
}

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

.suggestion-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.suggestion-item .item-name {
    font-weight: 600;
    font-size: 1em;
}

.suggestion-item .item-detail {
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 2px;
}

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

.location {
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.date {
    font-size: 1.1em;
    opacity: 0.9;
}

.current-time {
    font-size: 2em;
    font-weight: bold;
    margin-top: 15px;
    letter-spacing: 2px;
}

.next-prayer-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.next-prayer-card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.next-prayer-name {
    font-size: 2.5em;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 10px;
}

.next-prayer-time {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.countdown-section, .iqama-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.countdown-label, .iqama-label {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
    font-weight: 600;
}

.countdown-display, .iqama-display {
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #667eea;
}

.iqama-display {
    color: #e74c3c;
}

.iqama-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
    font-style: italic;
}

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

.prayer-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-in;
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.prayer-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.prayer-card.active .prayer-name,
.prayer-card.active .prayer-time,
.prayer-card.active .iqama-time {
    color: white;
}

.prayer-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.prayer-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.prayer-time {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.iqama-time {
    font-size: 1em;
    color: #e74c3c;
    font-weight: 600;
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    font-size: 0.9em;
}

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

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .city-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .selection-step {
        width: 90%;
        max-width: 300px;
    }
    
    .next-prayer-name {
        font-size: 2em;
    }
    
    .next-prayer-time {
        font-size: 2.5em;
    }
    
    .countdown-display, .iqama-display {
        font-size: 2em;
    }
    
    .prayer-times-grid {
        grid-template-columns: 1fr;
    }
}
