/* Time Zone Converter Specific Styles */

/* Body and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #181c40 0%, #2a3052 100%);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Header Section */
.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.page-title {
    color: #d8bd7d;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: #d8bd7d;
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Time Zone Cards Grid */
.timezone-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Timezone Cards */
.time-card {
    background: linear-gradient(135deg, #181c40 0%, rgba(216, 189, 125, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(216, 189, 125, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    padding: 24px;
    border-radius: 16px;
}

.time-card:hover {
    border-color: #d8bd7d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(216, 189, 125, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.city-name {
    color: #d8bd7d;
    font-size: 20px;
    font-weight: 700;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.time-display {
    color: #d8bd7d;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.date-display {
    color: #d8bd7d;
    font-size: 14px;
}

/* Content Containers */
.content-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(216, 189, 125, 0.4);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.section-heading {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-heading-center {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Selection Container */
.selection-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .selection-container {
        flex-direction: row;
    }
}

.dropdown-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
}

.dropdown-label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* FIXED DROPDOWN STYLING */
.timezone-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 40px 12px 16px;
    background: white;
    font-size: 15px;
    width: 100%;
    transition: border-color 0.3s ease;
    color: #1f2937;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.timezone-select:focus {
    border-color: #d8bd7d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 189, 125, 0.1);
}

.timezone-select:hover {
    border-color: #d8bd7d;
}

/* Dropdown options styling */
.timezone-select option {
    background: white;
    color: #1f2937;
    padding: 12px;
    font-size: 15px;
}

.timezone-select option:hover {
    background: #f3f4f6;
}

.timezone-select option[value=""] {
    color: #9ca3af;
}

/* Buttons */
.add-btn {
    background: linear-gradient(45deg, #d8bd7d, #e6d09a);
    color: white;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 189, 125, 0.3);
    white-space: nowrap;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 189, 125, 0.5);
}

/* Map */
.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #d8bd7d, #e6d09a);
    color: #181c40;
    padding: 14px 26px;
    border-radius: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(216, 189, 125, 0.4);
}

.toast.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .time-card {
        max-width: 100%;
    }

    .content-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .time-display {
        font-size: 28px;
    }

    .add-btn {
        width: 100%;
        padding: 12px 24px;
    }
}