﻿

.time-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    padding: 30px;
    text-align: center;
}
h1 {
    color: #333;
    margin-bottom: 25px;
    font-size: 0.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.time-display {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    
    border: 2px dashed #dee2e6;
}

.selected-time {
    font-size: 3.2rem;
    font-weight: bold;
    color: #2575fc;
    letter-spacing: 2px;
    margin: 10px 0;
}

.time-label {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

.time-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.selector {
    flex: 1;
    text-align: center;
}

.selector-title {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
    font-weight: 600;
}

.selector-list {
    height: 200px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 5px 0;
    background-color: #f9f9f9;
}

.selector-item {
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

    .selector-item:hover {
        background-color: #e3f2fd;
    }

    .selector-item.selected {
        background-color: #2575fc;
        color: white;
        font-weight: bold;
    }

    .selector-item:last-child {
        border-bottom: none;
    }

.ampm-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ampm-btn {
    padding: 10px 20px;
    border: 2px solid #2575fc;
    background-color: white;
    color: #2575fc;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

    .ampm-btn.selected {
        background-color: #2575fc;
        color: white;
    }

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}



/* پیمایش زیبا */
.selector-list::-webkit-scrollbar {
    width: 8px;
}

.selector-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.selector-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .selector-list::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .selected-time {
        font-size: 2.5rem;
    }

    .time-selector {
        flex-direction: column;
        gap: 15px;
    }

    .selector-list {
        height: 150px;
    }
}
