/* فونت‌های زیبا برای عربی و فارسی */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* فونت واضح عربی - Vazeh Bold */
@font-face {
    font-family: 'VazehBold';
    src: url('../fonts/vazeh_bold.otf') format('opentype'),
         url('../fonts/vazeh_bold.woff2') format('woff2'),
         url('../fonts/vazeh_bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* استایل کلی */
.quran-daily-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px;
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

/* هدر با دو باکس مجزا */
.header-section {
    margin-bottom: 25px;
}

.header-main-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.header-left-box {
    flex: 3;
    padding: 25px;
    background: linear-gradient(135deg, #2c5c7a 0%, #1e3c52 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-right-box {
    flex: 1;
    padding: 25px;
    background: linear-gradient(135deg, #5c7a2c 0%, #3c521e 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.khatm-counter {
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    text-align: center;
}

.surah-info-header {
    text-align: center;
}

.surah-info-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.6em;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.surah-info-header span {
    font-size: 1.2em;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
}

.progress-section {
    flex-grow: 1;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95em;
}

.progress-bar {
    height: 28px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #2e7d32 100%);
    border-radius: 14px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    z-index: 1;
    background-size: 50px 50px;
    animation: move 2s linear infinite;
    border-radius: 14px;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.progress-percent {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* متن آیه */
.ayah-text {
    text-align: center;
    margin: 30px 0;
    padding: 35px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6d6a8;
}

.arabic {
    font-size: 2.8em;
    margin-bottom: 30px;
    line-height: 2.2;
    color: #3e2723;
    font-family: 'VazehBold', 'Vazirmatn', sans-serif;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.translation {
    font-size: 1.3em;
    line-height: 1.9;
    color: #5d4037;
    font-weight: 400;
    border-top: 2px dashed #d7ccc8;
    padding-top: 25px;
    font-style: italic;
}

/* کنترل‌های اصلی - همه در یک ردیف */
.main-controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #bacddc;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.control-btn {
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    min-width: 130px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn .icon {
    font-size: 1.2em;
}

/* پخش کننده صوت در کنار کنترل‌ها */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.audio-controls label {
    font-weight: 500;
    color: #37474f;
    white-space: nowrap;
}

.audio-controls select {
    padding: 10px;
    border: 1px solid #90caf9;
    border-radius: 8px;
    background: white;
    font-family: 'Vazirmatn', sans-serif;
    min-width: 80px;
    cursor: pointer;
}

/* فرم‌های ثبت */
.submission-forms {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #d1c4e9;
    text-align: center;
}

.submission-forms h3 {
    margin-bottom: 20px;
    color: #6a1b9a;
    font-size: 1.4em;
}

.form-box {
    margin-bottom: 18px;
    position: relative;
}

.form-box input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ce93d8;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    background-color: rgba(255, 255, 255, 0.8);
    color: #4a148c;
    font-size: 1em;
    text-align: center;
    transition: all 0.3s ease;
}

.form-box input:focus {
    outline: none;
    border-color: #8e24aa;
    box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.1);
}

.form-box input::placeholder {
    color: #ab47bc;
    opacity: 0.7;
    text-align: center;
}

.form-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ab47bc 0%, #7b1fa2 100%);
}

/* کنترل‌های پایینی */
.footer-controls {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* پیام موفقیت کپی */
.copy-success-message {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* طراحی ریسپانسیو */
@media (max-width: 968px) {
    .header-main-row {
        flex-direction: column;
    }
    
    .main-controls-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .audio-controls {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .quran-daily-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .arabic {
        font-size: 2.2em;
    }
    
    .translation {
        font-size: 1.1em;
    }
    
    .main-controls-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .control-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .audio-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-controls .control-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* استایل برای حالت‌های مختلف */
.control-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.control-btn:disabled:hover {
    transform: none !important;
}

/* استایل برای خطاها */
.quran-error {
    text-align: center;
    color: #dc3545;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
}

/* استایل برای حالت فعال */
.active {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%) !important;
}

/* بهبود نمایش در مرورگرهای مختلف */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* انیمیشن‌های اضافی برای تعامل بهتر */
.progress-fill {
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.control-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* کاهش motion برای کاربران حساس به حرکت */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .progress-fill::after {
        animation: none;
    }
    
    .copy-success-message {
        animation: none;
    }
    /* استایل‌های صفحه مدیریت */
.wrap {
    padding: 20px;
}

.tablenav.top {
    margin-bottom: 15px;
}

.wp-list-table {
    margin-top: 15px;
}

.button-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.button-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.button-primary {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.button-primary:hover {
    background: #006ba1;
    border-color: #006ba1;
}

.check-column {
    width: 2em;
}
}