
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    position: relative;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0A1F3F 0%, #1A3F5F 100%);
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* =========================================
   LAYOUT دو ستونه
   ========================================= */
.two-column-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: relative;

}

/* ستون چپ - انیمیشن‌ها */
.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    min-width: 300px;
}

/* ستون راست - تایمر */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(10, 31, 63, 0.7); /* پس‌زمینه نیمه شفاف */
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 199, 44, 0.1);
    min-width: 400px;
    position: relative;
}

/* حذف پس‌زمینه‌های تکراری از باکس‌ها */
.right-column::before {
    display: none;
}

/* دکمه نمایش/مخفی کردن ستون راست در موبایل */
.toggle-column-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 199, 44, 0.2);
    border: 1px solid rgba(255, 199, 44, 0.3);
    color: #FFE28A;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: none;
    z-index: 100;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.toggle-column-btn:hover {
    background: rgba(255, 199, 44, 0.3);
    transform: scale(1.05);
}

/* =========================================
   PRELOADER CONTAINER
   ========================================= */
#medical-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0A1F3F 0%, #1A3F5F 100%);
    display: flex;
    z-index: 999999;
    overflow: hidden;
}

/* =========================================
   ANIMATED BACKGROUND
   ========================================= */
.pulse-background {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 0;
}

.pulse-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 199, 44, 0.15) 0%, transparent 70%);
    animation: pulseBackground 10s ease-in-out infinite;
}

.pulse-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.pulse-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: 50px;
    animation-delay: 3s;
    background: radial-gradient(circle, rgba(63, 127, 122, 0.1) 0%, transparent 70%);
}

.pulse-circle:nth-child(3) {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 30%;
    animation-delay: 6s;
    background: radial-gradient(circle, rgba(255, 226, 138, 0.08) 0%, transparent 70%);
}

@keyframes pulseBackground {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.3;
    }
}

/* =========================================
   LEFT COLUMN STYLES - ANIMATIONS
   ========================================= */
.animation-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.medical-symbol {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-loader {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    filter: drop-shadow(0 0 40px rgba(255, 199, 44, 0.3));
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter:
        drop-shadow(0 0 25px rgba(255, 199, 44, 0.6))
        drop-shadow(0 0 50px rgba(63, 127, 122, 0.4))
        contrast(1.15)
        brightness(1.1);
    position: relative;
    z-index: 5;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        filter:
            drop-shadow(0 0 25px rgba(255, 199, 44, 0.6))
            drop-shadow(0 0 50px rgba(63, 127, 122, 0.4));
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        filter:
            drop-shadow(0 0 35px rgba(255, 199, 44, 0.8))
            drop-shadow(0 0 70px rgba(63, 127, 122, 0.6));
    }
}

/* حلقه‌های چرخان */
.logo-loader::before {
    content: '';
    position: absolute;
    width: 115%;
    height: 115%;
    border: 4px solid #FFC72C;
    border-top-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0.9;
    box-shadow:
        0 0 40px rgba(255, 199, 44, 0.7),
        inset 0 0 20px rgba(255, 199, 44, 0.3);
    z-index: 4;
    animation: rotateRingClockwise 25s linear infinite;
}

.logo-loader::after {
    content: '';
    position: absolute;
    width: 130%;
    height: 130%;
    border: 3px solid #3F7F7A;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    opacity: 0.7;
    z-index: 3;
    animation: rotateRingCounterClockwise 20s linear infinite;
}

@keyframes rotateRingClockwise {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes rotateRingCounterClockwise {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(-360deg) scale(1);
    }
}

/* هاله‌های پالسی */
.halo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: haloPulse 4s ease-out infinite;
    z-index: 2;
}

.halo-1 {
    width: 130%;
    height: 130%;
    animation-delay: 0s;
}

.halo-2 {
    width: 160%;
    height: 160%;
    border-color: rgba(255, 226, 138, 0.4);
    animation-delay: 1s;
}

.halo-3 {
    width: 190%;
    height: 190%;
    border-color: rgba(63, 127, 122, 0.2);
    animation-delay: 2s;
}

@keyframes haloPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* پالس بارهای عمودی */
.pulse-loader {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end;
    height: 120px;
    width: 100%;
    margin-top: 2rem;
}

.pulse-bar {
    width: 15px;
    height: 60px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    opacity: 0.8;
}

.pulse-bar:nth-child(1) {
    background: linear-gradient(to top,
        transparent 0%,
        #FFC72C 15%,
        #FFC72C 85%,
        transparent 100%);
    box-shadow:
        0 0 30px rgba(255, 199, 44, 0.8),
        inset 0 0 15px rgba(255, 226, 138, 0.7);
    animation: pulseBar1 2s ease-in-out infinite;
}

.pulse-bar:nth-child(2) {
    background: linear-gradient(to top,
        transparent 0%,
        #3F7F7A 15%,
        #3F7F7A 85%,
        transparent 100%);
    box-shadow:
        0 0 30px rgba(63, 127, 122, 0.8),
        inset 0 0 15px rgba(127, 199, 194, 0.7);
    animation: pulseBar2 2s ease-in-out infinite 0.4s;
}

.pulse-bar:nth-child(3) {
    background: linear-gradient(to top,
        transparent 0%,
        #FFC72C 15%,
        #FFC72C 85%,
        transparent 100%);
    box-shadow:
        0 0 30px rgba(255, 199, 44, 0.8),
        inset 0 0 15px rgba(255, 226, 138, 0.7);
    animation: pulseBar3 2s ease-in-out infinite 0.8s;
}

.pulse-bar:nth-child(4) {
    background: linear-gradient(to top,
        transparent 0%,
        #3F7F7A 15%,
        #3F7F7A 85%,
        transparent 100%);
    box-shadow:
        0 0 30px rgba(63, 127, 122, 0.8),
        inset 0 0 15px rgba(127, 199, 194, 0.7);
    animation: pulseBar4 2s ease-in-out infinite 1.2s;
}

.pulse-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.9),
        transparent
    );
    animation: shine 3s linear infinite;
}

@keyframes pulseBar1 {
    0%, 100% {
        transform: scaleY(1);
        height: 60px;
    }
    50% {
        transform: scaleY(1.8);
        height: 108px;
    }
}

@keyframes pulseBar2 {
    0%, 100% {
        transform: scaleY(1);
        height: 60px;
    }
    50% {
        transform: scaleY(2.2);
        height: 132px;
    }
}

@keyframes pulseBar3 {
    0%, 100% {
        transform: scaleY(1);
        height: 60px;
    }
    50% {
        transform: scaleY(1.6);
        height: 96px;
    }
}

@keyframes pulseBar4 {
    0%, 100% {
        transform: scaleY(1);
        height: 60px;
    }
    50% {
        transform: scaleY(2);
        height: 120px;
    }
}

@keyframes shine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

/* دایره‌های چرخان اضافی */
.orbital-circles {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.orbital-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 199, 44, 0.1);
    animation: orbit 30s linear infinite;
}

.orbital-circle:nth-child(1) {
    width: 450px;
    height: 450px;
    animation-delay: 0s;
    animation-duration: 40s;
}

.orbital-circle:nth-child(2) {
    width: 550px;
    height: 550px;
    animation-delay: 10s;
    animation-duration: 50s;
    border-color: rgba(63, 127, 122, 0.1);
}

.orbital-circle:nth-child(3) {
    width: 650px;
    height: 650px;
    animation-delay: 20s;
    animation-duration: 60s;
    border-color: rgba(255, 226, 138, 0.05);
}

@keyframes orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   RIGHT COLUMN STYLES - TIMER
   ========================================= */
.timer-container {
    width: 100%;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.timer-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.timer-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFC72C 0%, #FFE28A 50%, #3F7F7A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.timer-subtitle {
    font-size: 1.2rem;
    color: #B0D4FF;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* COUNTDOWN TIMER - باکس‌های تمیز */
.countdown-section {
    width: 100%;
    margin: 2rem 0;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* باکس‌های ساده و شفاف */
.countdown-box {
    background: rgba(255, 255, 255, 0.05); /* شفافیت بیشتر */
    border-radius: 20px;
    padding: 2rem 1rem;
    border: 1px solid rgba(255, 199, 44, 0.2); /* حاشیه طلایی نازک */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* حذف تمام gradientهای غیرضروری */
.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 199, 44, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

/* حذف خط بالایی */
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFC72C, #3F7F7A);
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
}

/* حذف overlay داخلی */
.countdown-box::after {
    display: none;
}

.countdown-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFC72C 0%, #FFE28A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.8rem;
    font-family: 'Arial', sans-serif;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

/* رنگ‌های متفاوت برای هر باکس */
.countdown-box:nth-child(1) .countdown-value {
    background: linear-gradient(135deg, #FFC72C 0%, #FFE28A 100%);
}

.countdown-box:nth-child(2) .countdown-value {
    background: linear-gradient(135deg, #3F7F7A 0%, #7FC7C2 100%);
}

.countdown-box:nth-child(3) .countdown-value {
    background: linear-gradient(135deg, #FFC72C 0%, #FFD166 100%);
}

.countdown-box:nth-child(4) .countdown-value {
    background: linear-gradient(135deg, #3F7F7A 0%, #4CAF50 100%);
}

.countdown-label {
    font-size: 1rem;
    color: #B0D4FF;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.9;
}

/* PROGRESS BAR */
.progress-section {
    width: 100%;
    margin: 2.5rem 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    font-size: 1.3rem;
    color: #FFE28A;
    font-weight: 600;
}

.progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFC72C, #3F7F7A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar-container {
    height: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg,
        #FFC72C 0%,
        #FFD166 25%,
        #3F7F7A 50%,
        #4CAF50 75%,
        #FFC72C 100%);
    background-size: 200% 100%;
    border-radius: 7px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent);
    animation: shimmer 2.5s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* LOADING DOTS */
.loading-dots {
    display: inline-flex;
    gap: 0.6rem;
    margin-left: 0.8rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFC72C;
    opacity: 0.6;
    animation: dotBounce 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* =========================================
   RESPONSIVE DESIGN - موبایل و تبلت
   ========================================= */
@media (max-width: 1200px) {
    .logo-loader {
        width: 250px;
        height: 250px;
    }

    .timer-title {
        font-size: 2.2rem;
    }

    .countdown-value {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .two-column-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .left-column, .right-column {
        width: 100%;
        min-height: 50vh;
        min-width: 100%;
    }

    .right-column {
        border-left: none;
        border-top: 1px solid rgba(255, 199, 44, 0.1);
    }

    .toggle-column-btn {
        display: block;
    }

    .right-column.hidden-on-mobile {
        display: none;
    }

    .left-column.active-on-mobile {
        min-height: 100vh;
    }

    .medical-symbol {
        height: 300px;
    }

    .pulse-loader {
        height: 100px;
        gap: 1.5rem;
    }

    .pulse-bar {
        width: 12px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .logo-loader {
        width: 200px;
        height: 200px;
    }

    .timer-title {
        font-size: 1.8rem;
    }

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

    .countdown-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .countdown-box {
        padding: 1.5rem 1rem;
    }

    .countdown-value {
        font-size: 2.5rem;
    }

    .countdown-label {
        font-size: 0.9rem;
    }

    .pulse-loader {
        gap: 1rem;
        height: 80px;
    }

    .pulse-bar {
        width: 10px;
        height: 40px;
    }

    .orbital-circles {
        width: 300px;
        height: 300px;
    }

    .orbital-circle:nth-child(1) {
        width: 350px;
        height: 350px;
    }

    .orbital-circle:nth-child(2) {
        width: 450px;
        height: 450px;
    }

    .orbital-circle:nth-child(3) {
        width: 550px;
        height: 550px;
    }

    .progress-title {
        font-size: 1.1rem;
    }

    .progress-percent {
        font-size: 1.3rem;
    }

    .status-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .left-column, .right-column {
        padding: 1rem;
    }

    .logo-loader {
        width: 180px;
        height: 180px;
    }

    .timer-title {
        font-size: 1.6rem;
    }

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

    .countdown-box {
        padding: 1.2rem 0.8rem;
    }

    .countdown-value {
        font-size: 2.2rem;
    }

    .pulse-loader {
        gap: 0.8rem;
        height: 70px;
    }

    .pulse-bar {
        width: 8px;
        height: 35px;
    }

    .medical-symbol {
        height: 250px;
        margin-bottom: 1rem;
    }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   NO SCROLL
   ========================================= */
body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* =========================================
   RTL SUPPORT
   ========================================= */
html[dir="rtl"] .two-column-layout {
    flex-direction: row-reverse;
}

html[dir="rtl"] .right-column {
    border-left: none;
    border-right: 1px solid rgba(255, 199, 44, 0.1);
}

html[dir="rtl"] .toggle-column-btn {
    right: auto;
    left: 20px;
}

@media (max-width: 992px) {
    html[dir="rtl"] .two-column-layout {
        flex-direction: column;
    }

    html[dir="rtl"] .right-column {
        border-right: none;
        border-top: 1px solid rgba(255, 199, 44, 0.1);
    }
}