@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

body {
    font-family: 'Varela Round', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #2222223d;
    position: relative;
    background-image: url("Black-logo.jpg");
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 650px;
    width: 98vw;
    min-height: 520px;
    margin: 48px auto;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 8px 40px 0 rgba(0,0,0,0.25);
    padding: 64px 48px 48px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #222;
    transition: max-width 0.3s, padding 0.3s, min-height 0.3s;
}

h1 {
    font-size: 2.7em;
    margin-bottom: 18px;
    color: #1a237e;
    letter-spacing: 0.04em;
    font-weight: bold;
    text-shadow: 0 2px 12px #0001;
}

.fast-date {
    font-size: 1.25em;
    color: #374151;
    margin-bottom: 28px;
    font-weight: 500;
}

.city-select {
    margin-bottom: 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.city-select label {
    font-size: 1.18em;
    margin-bottom: 10px;
    color: #1a237e;
    font-weight: 600;
}
.city-select select {
    font-size: 1.15em;
    padding: 12px 40px 12px 18px;
    border-radius: 18px;
    border: 2px solid #1a237e;
    background: #fff;
    color: #1a237e;
    box-shadow: 0 2px 12px #0001;
    font-family: inherit;
    font-weight: bold;
    outline: none;
    transition: box-shadow 0.2s, border 0.2s, background 0.2s;
    appearance: none;
    position: relative;
    min-width: 200px;
    text-align: right;
    cursor: pointer;
}
.city-select select:focus {
    box-shadow: 0 0 0 2px #1de9b6, 0 2px 12px #1a237e33;
    border: 2px solid #1de9b6;
    background: #f4f7fa;
}
.city-select select:hover {
    background: #f4f7fa;
}
.city-select select::-ms-expand {
    display: none;
}

.countdown {
    font-size: 5.5em;
    font-weight: bold;
    letter-spacing: 0.12em;
    color: #1a237e;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    gap: 0.3em;
    transition: color 0.3s;
    text-shadow: 0 2px 12px #0001;
    direction: ltr;
    text-align: center;
}
.countdown.animated span {
    animation: pop 1s infinite alternate;
}
@keyframes pop {
    0% { transform: scale(1); color: #1a237e; }
    100% { transform: scale(1.08); color: #1de9b6; }
}
.countdown span {
    min-width: 60px;
    display: inline-block;
    text-align: center;
}

.fast-times {
    font-size: 1.22em;
    color: #374151;
    margin-top: 28px;
    margin-bottom: 28px;
    font-weight: 500;
}

.share-buttons {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.fast-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}
.share-buttons button,
.fast-actions button {
    font-size: 1.13em;
    padding: 12px 32px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(90deg, #1de9b6 0%, #1a237e 100%);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    box-shadow: 0 2px 12px #0003;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.share-buttons button:hover,
.fast-actions button:hover {
    background: linear-gradient(90deg, #3949ab 0%, #1de9b6 100%);
    transform: scale(1.06);
    box-shadow: 0 4px 24px #1de9b633;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 300;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #1a237e;
}
.modal-close {
    border: none;
    background: transparent;
    font-size: 1.8em;
    color: #1a237e;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background 0.2s;
}
.modal-close:hover {
    background: rgba(29, 233, 182, 0.15);
}
.modal-subtitle {
    font-size: 1.1em;
    font-weight: 600;
    color: #374151;
}
.modal-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05em;
    color: #1a237e;
}
.modal-controls label {
    font-weight: 600;
}
.modal-controls select {
    font-size: 1.05em;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid #1a237e;
    font-family: inherit;
    font-weight: 600;
    color: #1a237e;
    background: #fff;
    cursor: pointer;
    min-width: 120px;
    transition: box-shadow 0.2s, border 0.2s;
}
.modal-controls select:focus {
    outline: none;
    border-color: #1de9b6;
    box-shadow: 0 0 0 2px rgba(29, 233, 182, 0.35);
}
.modal-status {
    min-height: 24px;
    font-weight: 600;
    color: #1a237e;
}
.modal-status[data-state="error"] {
    color: #d32f2f;
}
.modal-table-wrapper {
    flex: 1;
    overflow: auto;
    border: 1px solid rgba(26, 35, 126, 0.2);
    border-radius: 16px;
}
.modal-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.modal-table-wrapper th,
.modal-table-wrapper td {
    padding: 12px 16px;
    text-align: right;
    font-size: 1em;
    color: #000000;
}
.modal-table-wrapper thead {
    background: rgba(26, 35, 126, 0.05);
}
.modal-table-wrapper th {
    color: #1a237e;
    font-weight: 700;
    position: sticky;
    top: 0;
    background: rgba(26, 35, 126, 0.08);
    backdrop-filter: blur(4px);
}
.modal-table-wrapper tbody tr:nth-child(even) {
    background: rgba(29, 233, 182, 0.08);
}
.modal-table-wrapper tbody tr:hover {
    background: rgba(29, 233, 182, 0.18);
}

body.modal-open {
    overflow: hidden;
}

.after-fast-message {
    font-size: 1.5em;
    color: #1de9b6;
    margin-top: 28px;
    font-weight: bold;
    letter-spacing: 0.04em;
    animation: fadeIn 1.2s;
    text-shadow: 0 2px 12px #0001;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

footer.credit-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background: rgba(255,255,255,0.92);
    color: #1a237e;
    font-size: 0.98em;
    text-align: center;
    padding: 10px 0 8px 0;
    z-index: 100;
    box-shadow: 0 -2px 16px #0001;
    letter-spacing: 0.01em;
    opacity: 0.95;
}
footer.credit-footer a {
    color: #1a237e;
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 900px) {
    .container {
        max-width: 99vw;
        padding: 24px 4vw 18px 4vw;
        min-height: 400px;
    }
    .countdown {
        font-size: 2.2em;
    }
    h1 {
        font-size: 1.5em;
    }
    .after-fast-message {
        font-size: 1.1em;
    }
    .modal {
        max-width: 95vw;
        padding: 18px;
        border-radius: 20px;
    }
    .modal-table-wrapper {
        max-height: 60vh;
    }
    .modal-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    html, body {
        overflow: hidden !important;
        height: 100vh;
        min-height: 100vh;
    }
    body {
        padding: 0;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        height: 100vh;
        display: flex;
    }
    .container {
        max-width: 85vw;
        min-height: unset;
        padding: 3vw 1vw 2vw 1vw;
        border-radius: 12px;
        margin: 8px auto 0 auto;
        box-shadow: 0 2px 16px #0002;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }
    h1 {
        font-size: 1em;
        margin-bottom: 8px;
    }
    .fast-date {
        font-size: 0.92em;
        margin-bottom: 8px;
    }
    .city-select {
        margin-bottom: 10px;
    }
    .city-select label {
        font-size: 0.92em;
        margin-bottom: 4px;
    }
    .city-select select {
        min-width: 90px;
        font-size: 0.92em;
        padding: 7px 8px 7px 7px;
        border-radius: 8px;
    }
    .countdown {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
    .fast-times {
        font-size: 0.92em;
        margin-top: 6px;
        margin-bottom: 6px;
    }
    .share-buttons {
        margin-top: 7px;
        gap: 5px;
    }
    .share-buttons button {
        font-size: 0.92em;
        padding: 6px 8px;
        border-radius: 8px;
    }
    .after-fast-message {
        font-size: 0.88em;
        margin-top: 6px;
    }
    .modal-overlay {
        padding: 10px;
    }
    .modal {
        max-width: 100%;
        padding: 16px 12px;
        border-radius: 16px;
        gap: 12px;
    }
    .modal-header h2 {
        font-size: 1.3em;
    }
    .modal-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    .modal-controls select {
        width: 100%;
    }
    .modal-table-wrapper {
        max-height: 55vh;
        border-radius: 12px;
    }
    .modal-table-wrapper table {
        min-width: unset;
    }
    .modal-table-wrapper th,
    .modal-table-wrapper td {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    .fast-actions {
        width: 100%;
        margin-top: 10px;
    }
    .fast-actions button,
    .share-buttons button {
        width: 100%;
    }
} 