/* City Selection Dialog Styles */
/* Version: 1.0.0 */
/* Last Updated: 14 January 2025 */

/* Overlay - darkens background */
.city-selection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-in-out;
}

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

/* Dialog box */
.city-selection-dialog {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

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

/* Header */
.city-selection-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.city-selection-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.city-selection-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* City list */
.city-selection-list {
    overflow-y: auto;
    flex: 1;
    padding: 10px;
}

/* City item */
.city-selection-item {
    padding: 15px;
    margin: 5px 0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-selection-item:hover {
    background-color: #f5f5f5;
    border-color: #4CAF50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.city-selection-item:active {
    background-color: #e8f5e9;
}

.city-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.city-details {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.city-selection-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.cancel-button {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cancel-button:hover {
    background-color: #e0e0e0;
}

.cancel-button:active {
    background-color: #d0d0d0;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .city-selection-dialog {
        width: 95%;
        max-height: 80vh;
    }

    .city-selection-header {
        padding: 15px;
    }

    .city-selection-header h3 {
        font-size: 16px;
    }

    .city-selection-item {
        padding: 12px;
    }

    .city-name {
        font-size: 14px;
    }

    .city-details {
        font-size: 11px;
    }
}
