:root {
    --pdc-bg-light: #e3f2fd;
    --pdc-text-light: #333;
    --pdc-bg-dark: #1a1a1a;
    --pdc-text-dark: #fff;
}

@keyframes pdcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pdc-loading {
    opacity: 0;
}

#pdc-main {
    opacity: 0;
    animation: pdcFadeIn 0.5s ease-in forwards;
}

#pdc-main p {
    direction: rtl;
    font-weight: bold;
    text-align: center;
    padding: 5%;
    background-color: var(--pdc-bg-light);
    color: var(--pdc-text-light);
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    /* Improve text contrast ratio */
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    /* Better focus indication for keyboard navigation */
    outline: none;
    /* Improve touch target size on mobile */
    min-height: 44px;
}

[data-theme="dark"] #pdc-main p {
    background-color: var(--pdc-bg-dark);
    color: var(--pdc-text-dark);
    box-shadow: 0 2px 4px rgba(255,255,255,0.1);
}

#pdc-time, .pdc-time {
    font-size: clamp(1rem, 3vw, 2rem);
    display: block;
    letter-spacing: 2px;
    width: 100%;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    /*font-family: 'Vazirmatn', Tahoma, sans-serif;*/
    margin-bottom: 0rem;
    transition: font-size 0.3s ease;
}

#pdc-date, .pdc-date {
    font-size: clamp(1rem, 3vw, 1.5rem);
    display: block;
    margin-top: 0px;
    font-variant-numeric: tabular-nums;
   /* font-family: 'Vazirmatn', Tahoma, sans-serif;*/
    transition: font-size 0.3s ease;
}

/* Timezone selector styles */
.timezone-wrapper {
    position: relative;
}

#timezone-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#timezone-search:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

#timezone-search.updated {
    background-color: #f0f6fc;
    border-color: #2271b1;
}

#timezone-select {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    display: none;
    position: absolute;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2px;
    box-sizing: border-box;
}

#timezone-select.visible {
    display: block;
}

#timezone-select option {
    padding: 8px;
    cursor: pointer;
}

#timezone-select option:hover {
    background-color: #f0f6fc;
}

#timezone-select optgroup {
    font-weight: bold;
    color: #1d2327;
    background-color: #f0f0f1;
}

.screen-reader-text {
    position: absolute;
    margin: -1px;
    padding: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    word-wrap: normal !important;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    #pdc-main p {
        padding: 3%;
    }
}

@media (max-width: 480px) {
    #pdc-main p {
        padding: 2%;
    }
}