/* CSS untuk Notifikasi Auto Play - hadits_autoplay.css */

/* Auto play notification */
.auto-play-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
    animation: slideInRight 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-left: 4px solid #155724;
    max-width: 300px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auto-play-notification i {
    margin-right: 10px;
    font-size: 1.2em;
    animation: pulse 2s infinite;
}

.auto-play-notification-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.auto-play-notification-progress {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.auto-play-notification-progress-bar {
    height: 100%;
    background: white;
    width: 100%;
    animation: progressBar 3s linear forwards;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes progressBar {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* Notification variants */
.auto-play-notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-left-color: #155724;
}

.auto-play-notification.info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    border-left-color: #0c5460;
}

.auto-play-notification.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border-left-color: #856404;
}

.auto-play-notification.error {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    border-left-color: #721c24;
}

/* Close button */
.auto-play-notification-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.auto-play-notification-close:hover {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .auto-play-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .auto-play-notification {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .auto-play-notification i {
        font-size: 1em;
        margin-right: 8px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auto-play-notification {
        box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }
}

/* Print styles */
@media print {
    .auto-play-notification {
        display: none !important;
    }
}




  /* ===== SISTEM WARNA TAJWID BARU SESUAI BUKU PEDOMAN ===== */

/* WARNA MERAH: Idgham Bigunnah, Idgham Mutamatsilain, Idgham Mutajanisain, Idgham Mutagaribain, Waqaf Lazim, Tasydid, Lam & Ra Tafkhim */
.tajwid-red { 
    background-color: #FF6B6B !important; 
    color: #000000 !important;
}

/* WARNA MAGENTA: Idgham Bilaghunnah, Idgham Mimi, Gunnah, Saktah, Hamzatul Qath */
.tajwid-magenta { 
    background-color: #D8BFD8 !important; 
    color: #000000 !important;
}

/* WARNA CYAN: Iqlab, Madd Wajib Muttasil, Waqaf Ibadah, Qila Al-Washol, Mad Arid Lissukun, Hamzatul Wasl */
.tajwid-cyan { 
    background-color: #20B2AA !important; 
    color: #000000 !important;
}

/* WARNA HIJAU: Ikhfa, Ikhfa Syafawi, Madd Jaiz Munfasil, Washal Mustahab, Washal Awla, Muraqabah Gafr, Mad Thobi'i, Mad Lin, Mad Badal */
.tajwid-green { 
    background-color: #98FB98 !important; 
    color: #000000 !important;
}

/* WARNA BIRU: Qalqalah, Waqaf Muanaqah, Waqaf Jawaz, Idhar Qomariyah, Lam & Ra Tarqiq */
.tajwid-blue { 
    background-color: #87CEEB !important; 
    color: #000000 !important;
}

/* WARNA DEFAULT: Idhar Halqi, Idhar Syafawi */
.tajwid-default { 
    background-color: #F0F0F0 !important; 
    color: #000000 !important;
}

/* ===== BASE STYLES MINIMALIS - HANYA MEMPENGARUHI WARNA HURUF ===== */
[class*="tajwid-"] {
    cursor: help;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: inline !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    position: static !important;
    z-index: auto !important;
    line-height: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-style: inherit !important;
    font-variant: inherit !important;
    text-transform: inherit !important;
    letter-spacing: inherit !important;
    word-spacing: inherit !important;
    vertical-align: baseline !important;
    text-rendering: inherit !important;
    -webkit-font-smoothing: inherit !important;
    -moz-osx-font-smoothing: inherit !important;
    font-feature-settings: inherit !important;
}

/* Hover effect sangat minimal */
[class*="tajwid-"]:hover {
    outline: 2px solid rgba(255, 255, 0, 0.7) !important;
    outline-offset: 1px !important;
}

/* ===== TOOLTIP SEDERHANA ===== */
@media (max-width: 768px) {
    [class*="tajwid-"] {
        position: relative;
    }
    
    [class*="tajwid-"]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 4px 8px;
        border-radius: 3px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
        font-family: system-ui, -apple-system, sans-serif;
    }
}

/* ===== LEGENDA TAJWID ===== */
.tajwid-legend {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    max-width: 1200px;
    display: none;
}

.tajwid-legend.show {
    display: block;
}

.tajwid-legend h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 5px;
    font-size: 12px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
    flex-shrink: 0;
    border: 1px solid #ccc;
}

.legend-text {
    flex: 1;
    line-height: 1.3;
}

/* ===== TEXT ARABIC MURNI ===== */
.arabic-text {
    color: #000000;
    direction: rtl;
    font-size: 28px;
    font-family: 'ArabicFont', 'Traditional Arabic', 'Amiri', 'KFGQPC Uthman Taha Naskh', serif;
    line-height: 2;
    text-align: center;
    padding: 10px;
    font-feature-settings: "calt" 1;
}

/* Responsive */
@media (max-width: 768px) {
    .arabic-text {
        font-size: 24px;
        line-height: 1.8;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .arabic-text {
        font-size: 20px;
        line-height: 1.6;
        padding: 6px;
    }
    
    .tajwid-legend {
        padding: 10px;
        margin: 15px 10px;
    }
    
    .legend-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .arabic-text {
        color: #ffffff;
        background: #1f2937;
    }
    
    .tajwid-legend {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
}

    /* Font */
    @font-face {
        font-family: 'ArabicFont';
        src: url('font/lpmq.ttf') format('truetype');
    }
    
    /* Table Styles */
    table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px auto;
        background-color: #f8f9fa;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        overflow: hidden;
    }
    
    th, td {
        padding: 15px;
        text-align: center;
        border: 1px solid #ddd;
        font-size: 18px;
    }
    
    td:nth-child(1) {
        width: 75%;
    }
    
    th {
        background-color: #333;
        color: #fff;
    }
    
    /* Arabic Text Styles */
    td.arabic-text {
        direction: rtl;
        font-size: 50px;
        font-family: 'ArabicFont', sans-serif;
        color: #000000;
        line-height: 3;
    }
    
    /* Translation Text Styles */
    td.translation-text {
        text-align: center;
        color: #0b511b;
        font-weight: bold;
        font-size: 25px;
        line-height: 1.5;
        letter-spacing: 1px;
    }
    
    td.verse-number {
      background-color: #e0eef7;
      padding: 8px;
    }
    
    td.surah-name {
      background-color: #e0eef7;
      padding: 8px;
    }
    
    /* Surat Header Styles */
    .surat-header {
        font-weight: bold;
        font-size: 24px;
        background-color: #333;
        color: #fff;
        padding: 20px;
        border-bottom: 2px solid #343a40;
    }
    
    /* Form Styles */
    input,
    select {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    input,
    select,
    textarea {
        width: 100%;
        padding: .375rem .75rem;
        border-radius: .25rem;
        border: 1px solid #3498db;
        font-size: 1rem;
    }
    
    select {
        appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg fill="%233498db" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
        background-position: right .75rem center;
        background-repeat: no-repeat;
        background-size: 18px;
        padding-right: 2.5rem;
    }
    
    button {
        background-color: #4caf50;
        color: #fff;
        padding: 10px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }
    
    button[type="button"] {
        background-color: #ccc;
        margin-left: 10px;
    }
    
    button:hover,
    button[type="button"]:hover {
        background-color: #45a049;
    }
    
    /* Responsive Styles */
    @media only screen and (max-width: 600px) {
        form {
            margin: 20px;
        }
        th, td {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }
        th {
            width: 100%;
        }
        td:nth-child(1) {
            width: 100%;
        }
    }
    
    /* Audio Player Styles */
    .audio-player {
        background-color: #f5f5f5;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        max-width: 400px;
        margin: 0 auto;
    }
    
    .audio-player audio:playing {
        background-color: #3498db;
        color: #33335;
    }
    
    .audio-player audio:not(:playing) {
        background-color: #ecf0f1;
        color: #333;
    }
    
    .audio-player audio::-webkit-media-controls-timeline-container {
        background-color: #87CEFA;
        border-radius: 8px;
    }
    
    .audio-player audio::-webkit-media-controls-timeline-box {
        background-color: #FF6347;
        border-radius: 8px;
    }
    
    .audio-player audio::-webkit-media-controls-timeline::-webkit-media-controls-timeline-outer-container {
        height: 8px;
    }
    
    .audio-player audio {
        width: 100%;
        border: none;
        border-radius: 8px;
        margin-top: 15px;
    }
    
    @media screen and (max-width: 500px) {
        .audio-player {
            max-width: 100%;
        }
    }
    
    /* Pagination Styles */
    .pagination-container {
        text-align: center;
        margin-top: 20px;
    }
    
    .pagination-link {
        display: inline-block;
        padding: 12px 18px;
        margin: 0 5px;
        text-align: center;
        text-decoration: none;
        color: #fff;
        background-color: #3498db;
        border: 1px solid #3498db;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s, transform 0.3s;
    }
    
    .pagination-link:hover {
        background-color: #2980b9;
        color: #fff;
        transform: scale(1.05);
    }
    
    @media only screen and (max-width: 600px) {
        .pagination-link {
            padding: 10px 14px;
            font-size: 14px;
        }
    }
    
    /* General Styles */
    body {
        font-family: 'Arial', sans-serif;
        background-color: #f4f4f9;
        color: #333;
        margin: 0;
        padding: 0;
    }
    
    .form-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        max-width: 1200px;
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .form-group {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    legend {
        font-size: 1.5em;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 15px;
    }
    
    label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #34495e;
    }
    
    input[type="number"],
    input[type="text"] {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1em;
        box-sizing: border-box;
    }
    
    button {
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        font-size: 1em;
        cursor: pointer;
        margin-right: 10px;
        transition: background-color 0.3s ease;
        display: inline-block;
    }
    
    button[type="submit"] {
        background-color: #3498db;
        color: white;
    }
    
    button[type="submit"]:hover {
        background-color: #2980b9;
    }
    
    button[type="button"] {
        background-color: #95a5a6;
        color: white;
    }
    
    button[type="button"]:hover {
        background-color: #7f8c8d;
    }
    
    /* Dropdown Styles */
    .select-wrapper {
        position: relative;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .select-wrapper::after {
        content: "▼";
        font-size: 0.8em;
        color: #555;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }
    
    select {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 1em;
        box-sizing: border-box;
        background-color: #ffffff;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    select:hover {
        border-color: #3498db;
        box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
    }
    
    select:focus {
        outline: none;
        border-color: #2980b9;
        box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
    }
    
    select option {
        padding: 10px;
        background-color: #ffffff;
        color: #333;
        font-size: 1em;
        transition: background-color 0.3s ease;
    }
    
    select option:hover {
        background-color: #3498db;
        color: #ffffff;
    }
    
    select option:checked {
        background-color: #3498db;
        color: #ffffff;
        font-weight: bold;
    }
    
    /* Responsive Styles */
    @media (max-width: 768px) {
        .form-container {
            grid-template-columns: 1fr;
            padding: 10px;
        }
        .form-group button {
            width: 100%;
            margin-bottom: 10px;
            text-align: center;
        }
        .form-group button[type="button"] {
            margin: 0 auto;
            display: block;
        }
        legend {
            font-size: 1.3em;
        }
        input[type="number"],
        input[type="text"],
        select {
            font-size: 0.9em;
        }
        .select-wrapper::after {
            font-size: 0.7em;
        }
    }
    
    @media (max-width: 480px) {
        .form-group button {
            font-size: 0.9em;
        }
        .form-group button[type="button"] {
            margin: 10px auto;
            display: block;
        }
        .form-group {
            padding: 10px;
            margin: 5px;
        }
        legend {
            font-size: 1.2em;
        }
        input[type="number"],
        input[type="text"],
        select {
            font-size: 0.8em;
        }
        .select-wrapper::after {
            font-size: 0.6em;
        }
    }
    
    body {
      background-attachment: fixed;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
    }
    
   
    .catatan-kaki {
        color: black;
        font-size: 15px;
    }
    
    .sikil {
        color: blue;
        font-size: 20px;
    }
    
    .sup-red {
        color: red;
    }
   
    .video-container {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%;
    }
    
    .video-container video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
    
    @media screen and (max-width: 600px) {
      .video-container {
        padding-bottom: 75%;
      }
    }
    
    /* Add your CSS styles here */
    td.textlatin {
        text-align: center;
        color: #6610f2;
        font-weight: bold;
        line-height: 1.5;
        letter-spacing: 1px;
        font-size: 30px;
    }
    
    /* Media query for mobile devices */
    @media only screen and (max-width: 600px) {
        td.textlatin {
            font-size: 100%;
        }
    }
    

    /* Button container styles */
    .button-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 40px 0;
        row-gap: 20px;
    }
    
    .button-container button,
    .button-container form button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 190px;
        height: 50px;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s, opacity 0.3s;
        font-weight: bold;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
        color: #FFFFFF;
        text-transform: uppercase;
        margin: 10px 15px;
    }
    
    .button-container button:hover,
    .button-container form button:hover {
        filter: brightness(85%);
    }
    
    .button-container button:active,
    .button-container form button:active {
        filter: brightness(80%);
    }
    
    .copy-btn { background: #0056b3; }
    .copy-btn:hover { background: #004494; }
    .copy-btn:active { background: #003377; }
    
    .wa-btn { background: #008c4a; }
    .wa-btn:hover { background: #00703a; }
    .wa-btn:active { background: #005c2e; }
    
    .pdf-btn { background: #b30000; }
    .pdf-btn:hover { background: #990000; }
    .pdf-btn:active { background: #7f0000; }
    
    .txt-btn { background: #34495e; }
    .txt-btn:hover { background: #2c3e50; }
    .txt-btn:active { background: #1f2c3b; }
    
    .rtf-btn { background: #8e44ad; }
    .rtf-btn:hover { background: #732d91; }
    .rtf-btn:active { background: #5b2373; }
    
    .button-container svg {
        width: 20px;
        height: 20px;
        fill: white;
    }
    
    @media (max-width: 600px) {
        .button-container {
            flex-direction: column;
            gap: 20px;
        }
    }
    
    /* Highlight untuk ayat yang sedang diputar */
    .highlight {
        background-color: rgba(173, 216, 230, 0.4) !important;
        transition: background-color 0.3s ease;
        border-radius: 5px;
        padding: 5px;
    }
    
    .surah-audio-playing {
        border: 2px solid #4CAF50 !important;
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }
    
    /* Loading indicator */
    .loading {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255,255,255,.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Toggle Button Styles */
    .tajwid-toggle {
        display: inline-block;
        padding: 12px 24px;
        background: #3498db;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 600;
        transition: all 0.3s ease;
        margin: 10px 5px;
        border: none;
        cursor: pointer;
        font-size: 14px;
    }
    
    .tajwid-toggle:hover {
        background: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    .tajwid-toggle.disabled {
        background: #95a5a6;
    }
    
    .tajwid-toggle.disabled:hover {
        background: #7f8c8d;
    }
    
    .legend-toggle {
        background: #e74c3c;
    }
    
    .legend-toggle:hover {
        background: #c0392b;
    }
    
    .legend-toggle.active {
        background: #27ae60;
    }
    
    .legend-toggle.active:hover {
        background: #219955;
    }
    
    @media (max-width: 768px) {
        .tajwid-toggle {
            padding: 10px 20px;
            font-size: 14px;
        }
    }

    /* CSS PAGINATION RATA TENGAH */
    .pagination-container {
        text-align: center;
        margin: 20px 0;
        padding: 10px;
    }

    .pagination-container nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: inline-flex;
        gap: 5px;
    }

    .pagination-container nav ul li {
        display: inline;
    }
    .pagination-container nav ul li a,
    .pagination-container nav ul li span {
        display: inline-block;
        padding: 8px 16px;
        margin: 0 4px;
        border: 1px solid #ddd;
        border-radius: 4px;
        text-decoration: none;
        color: #333;
        background-color: #f8f9fa;
        transition: background-color 0.3s;
    }

    .pagination-container nav ul li a:hover {
        background-color: #e9ecef;
    }

    .pagination-container nav ul li .current {
        background-color: #007bff;
        color: white;
        border-color: #007bff;
    }
    
    
    /* ===== Download surah ===== */

/* Quran Download Surah Section Styles */
.quran_download_surah {
    max-width: 500px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.quran_download_surah_title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quran_download_surah_buttons {
    flex-wrap: wrap;
    gap: 10px;
}

.quran_download_surah_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 60px;
    min-height: 50px;
    position: relative;
    overflow: hidden;
}

.quran_download_surah_btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quran_download_surah_btn:active {
    transform: translateY(-1px);
}

/* PDF Button Styles */
.quran_download_surah_btn.pdf {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.quran_download_surah_btn.pdf:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
    border-color: #dc3545;
}

/* RTF Button Styles */
.quran_download_surah_btn.rtf {
    background: linear-gradient(45deg, #185abd, #0d47a1);
    color: white;
}

.quran_download_surah_btn.rtf:hover {
    background: linear-gradient(45deg, #0d47a1, #083d8b);
    border-color: #185abd;
}

/* TXT Button Styles */
.quran_download_surah_btn.txt {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.quran_download_surah_btn.txt:hover {
    background: linear-gradient(45deg, #495057, #343a40);
    border-color: #6c757d;
}

/* Tooltip Styles */
.quran_download_surah_btn[data-tooltip] {
    position: relative;
}

.quran_download_surah_btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.quran_download_surah_btn[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Mobile Portrait Styles */
@media (max-width: 576px) and (orientation: portrait) {
    .quran_download_surah {
        margin: 1rem auto;
        padding: 1rem !important;
        max-width: 90%;
    }
    
    .quran_download_surah_title {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
    }
    
    .quran_download_surah_buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .quran_download_surah_btn {
        width: 80%;
        max-width: 200px;
        padding: 12px 20px !important;
        margin: 0 !important;
    }
    
    .quran_download_surah_btn i {
        font-size: 1.2rem !important;
    }
    
    .quran_download_surah_btn[data-tooltip]::after {
        font-size: 0.7rem;
        bottom: -35px;
    }
}

/* Mobile Landscape Styles */
@media (max-width: 896px) and (orientation: landscape) {
    .quran_download_surah {
        margin: 0.8rem auto;
        padding: 0.8rem !important;
        max-width: 95%;
    }
    
    .quran_download_surah_title {
        font-size: 1rem;
        margin-bottom: 0.8rem !important;
    }
    
    .quran_download_surah_buttons {
        gap: 8px;
    }
    
    .quran_download_surah_btn {
        min-width: 50px;
        min-height: 40px;
        padding: 8px 12px !important;
        margin: 0 4px !important;
    }
    
    .quran_download_surah_btn i {
        font-size: 1rem !important;
    }
    
    .quran_download_surah_btn[data-tooltip]::after {
        font-size: 0.7rem;
        bottom: -30px;
    }
}

/* Tablet Styles */
@media (min-width: 577px) and (max-width: 768px) {
    .quran_download_surah {
        max-width: 450px;
        padding: 1.2rem !important;
    }
    
    .quran_download_surah_btn {
        min-width: 55px;
        min-height: 45px;
        margin: 0 6px !important;
    }
}

/* Smooth transitions for all interactive elements */
.quran_download_surah_btn,
.quran_download_surah_btn i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.quran_download_surah_btn:focus {
    outline: 2px solid rgba(0, 0, 0, 0.3);
    outline-offset: 2px;
}

/* ===== PAGINATION ===== */
        /* ===== PAGINATION ===== */
        .pagination-container {
            text-align: center;
            margin: 30px 0;
            padding: 15px;
            overflow-x: auto;
        }

        .pagination-container nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: inline-flex;
            gap: 5px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .pagination-container nav ul li {
            display: inline;
        }

        .pagination-container nav ul li a,
        .pagination-container nav ul li span {
            display: inline-block;
            padding: 10px 16px;
            margin: 2px;
            border: 2px solid #e1e5e9;
            border-radius: 6px;
            text-decoration: none;
            color: #2c5aa0;
            background-color: white;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 14px;
            min-width: 44px;
            min-height: 44px;
            box-sizing: border-box;
            line-height: 1.4;
        }

        .pagination-container nav ul li a:hover {
            background-color: #2c5aa0;
            color: white;
            border-color: #2c5aa0;
        }

        .pagination-container nav ul li .current {
            background-color: #2c5aa0;
            color: white;
            border-color: #2c5aa0;
        }





