/* Section */

    /* SECTION */

    /* Section */
    .dialogue-main-content {
        max-width: 1200px;
        width: 95%;
        margin: 2rem auto;
        text-align: center;
    }

    /* Section */
    .new-muslim-button-container {
        margin: 2rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-new-muslim {
        background: #10b981;
        color: #ffffff;
        border: 1px solid #059669;
        padding: 0.75rem 1.5rem;
        border-radius: 6px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-new-muslim:hover {
        background: #059669;
        border-color: #047857;
    }

    .btn-new-muslim:active {
        background: #047857;
    }

    .btn-content {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-icon-large {
        font-size: 1rem;
        color: #ffffff;
    }

    .btn-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .btn-main-text {
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.2;
        color: #ffffff;
    }

    .btn-sub-text {
        display: none;
    }

    body:not(.dark-mode) .btn-new-muslim {
        background: #10b981;
        border-color: #059669;
    }

    body:not(.dark-mode) .btn-new-muslim:hover {
        background: #059669;
    }

    /* Modal Overlay */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        animation: fadeInOverlay 0.3s ease;
        padding: 1rem;
    }

    @keyframes fadeInOverlay {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .modal-container {
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
        border: 1px solid var(--glass-border);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        max-width: 900px;
        width: 100%;
        max-height: 98vh;
        min-height: 90vh;
        overflow: hidden;
        animation: slideInModal 0.3s ease;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    body:not(.dark-mode) .modal-container {
        background: #ffffff;
        border-color: #e5e7eb;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    @keyframes slideInModal {
        from {
            opacity: 0;
            transform: translateY(60px) scale(0.9);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Modal Header */
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.02);
    }

    body:not(.dark-mode) .modal-header {
        border-bottom-color: #e5e7eb;
        background: #f9fafb;
    }

    .modal-header-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .modal-icon-wrapper {
        width: 32px;
        height: 32px;
        background: #718096;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-icon-wrapper i {
        font-size: 1rem;
        color: #ffffff;
    }

    .modal-title-wrapper h2 {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-light);
        margin: 0;
    }

    body:not(.dark-mode) .modal-title-wrapper h2 {
        color: #111827;
    }

    .modal-title-wrapper p {
        display: none;
    }

    .modal-close {
        background: transparent;
        border: none;
        font-size: 1.25rem;
        color: #6b7280;
        cursor: pointer;
        padding: 0.5rem;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        border-radius: 4px;
    }

    .modal-close:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    /* Modal Body - Scrollable */
    .modal-body {
        padding: 1.5rem;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1 1 auto;
        max-height: calc(98vh - 80px);
        min-height: calc(90vh - 80px);
        /* Section */
    }

    /* Scrollbar Styling */
    .modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: rgba(16, 185, 129, 0.3);
        border-radius: 4px;
    }

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: rgba(16, 185, 129, 0.5);
    }

    body:not(.dark-mode) .modal-body::-webkit-scrollbar-track {
        background: #f3f4f6;
    }

    body:not(.dark-mode) .modal-body::-webkit-scrollbar-thumb {
        background: #10b981;
    }

    /* Form Sections */
    .form-section {
        margin-bottom: 1.5rem;
    }

    /* form-section */
    .form-section:last-of-type {
        margin-bottom: 0;
    }

    .section-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    }

    .section-header i {
        font-size: 0.875rem;
        color: #718096;
    }

    .section-header span {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    body:not(.dark-mode) .section-header span {
        color: #4a5568;
    }

    body:not(.dark-mode) .section-header {
        border-bottom-color: #e2e8f0;
    }

    .datetime-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }

    .form-group label {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        margin-bottom: 0.375rem;
        font-weight: 500;
        color: var(--text-light);
        font-size: 0.875rem;
    }

    body:not(.dark-mode) .form-group label {
        color: #374151;
    }

    .form-group label i {
        color: #718096;
        font-size: 0.75rem;
    }

    .form-group input[type="date"],
    .form-group input[type="time"],
    .form-group input[type="text"],
    .form-group select {
        width: 100%;
        padding: 0.5rem 0.75rem;
        background: transparent;
        border: 1px solid #cbd5e0;
        border-radius: 6px;
        font-size: 0.9rem;
        color: var(--text-light);
        transition: all 0.2s ease;
    }

    body:not(.dark-mode) .form-group input[type="date"],
    body:not(.dark-mode) .form-group input[type="time"],
    body:not(.dark-mode) .form-group input[type="text"],
    body:not(.dark-mode) .form-group select {
        background: transparent;
        border-color: #cbd5e0;
        color: #2d3748;
    }

    .form-group input[type="date"]:focus,
    .form-group input[type="time"]:focus,
    .form-group input[type="text"]:focus,
    .form-group select:focus {
        outline: none;
        border-color: #718096;
        box-shadow: 0 0 0 2px rgba(113, 128, 150, 0.1);
        background: transparent !important;
    }

    /* Questions Container in Modal - Grid Layout */
    .questions-container-modal {
        margin-top: 0.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .loading-state {
        grid-column: 1 / -1;
        text-align: center;
        padding: 2rem;
        color: var(--text-light);
    }

    .spinner-large {
        width: 30px;
        height: 30px;
        border: 3px solid rgba(113, 128, 150, 0.2);
        border-top: 3px solid #718096;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 0.75rem;
    }

    .loading-state p {
        font-size: 0.875rem;
        opacity: 0.8;
    }

    /* Question Items in Modal */
    .questions-container-modal .question-item {
        display: flex;
        flex-direction: column;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 1rem;
        box-shadow: none !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .questions-container-modal .question-item::before,
    .questions-container-modal .question-item::after {
        display: none !important;
    }

    .questions-container-modal .question-item:hover {
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Section */
    .questions-container-modal .question-item.full-width {
        grid-column: 1 / -1;
    }

    .questions-container-modal .question-text {
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 0.375rem;
        color: var(--text-light);
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    body:not(.dark-mode) .questions-container-modal .question-text {
        color: #374151;
    }

    .questions-container-modal .question-text .question-icon {
        font-size: 0.75rem;
    }

    .questions-container-modal .question-type {
        display: none;
    }

    .questions-container-modal .question-item input[type="text"],
    .questions-container-modal .question-item select {
        width: 100%;
        padding: 0.5rem 0.75rem;
        background: transparent !important;
        border: 1px solid #cbd5e0;
        border-radius: 6px;
        font-size: 0.9rem;
        color: var(--text-light);
        transition: all 0.2s ease;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    body:not(.dark-mode) .questions-container-modal .question-item input[type="text"],
    body:not(.dark-mode) .questions-container-modal .question-item select {
        background: transparent !important;
        border-color: #cbd5e0;
        color: #2d3748;
    }

    .questions-container-modal .question-item input[type="text"]:focus,
    .questions-container-modal .question-item select:focus {
        outline: none;
        border-color: #718096;
        box-shadow: 0 0 0 2px rgba(113, 128, 150, 0.1);
        background: transparent !important;
        transform: none !important;
    }

    /* select */
    .questions-container-modal .question-item select,
    .form-group select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: transparent !important;
    }

    .questions-container-modal .question-item select option,
    .form-group select option {
        background: #ffffff;
    }

    /* question-item Modal */
    #new-muslim-modal .questions-container-modal .question-item,
    #new-muslim-modal .question-item {
        background: transparent !important;
        background-image: none !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 1rem !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        position: static !important;
    }

    #new-muslim-modal .questions-container-modal .question-item::before,
    #new-muslim-modal .questions-container-modal .question-item::after,
    #new-muslim-modal .question-item::before,
    #new-muslim-modal .question-item::after {
        display: none !important;
        content: none !important;
    }

    #new-muslim-modal .questions-container-modal .question-item:hover,
    #new-muslim-modal .question-item:hover {
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }

    #new-muslim-modal .questions-container-modal .question-item input,
    #new-muslim-modal .questions-container-modal .question-item select,
    #new-muslim-modal .question-item input,
    #new-muslim-modal .question-item select {
        background: transparent !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #new-muslim-modal .questions-container-modal .question-item input:focus,
    #new-muslim-modal .questions-container-modal .question-item select:focus,
    #new-muslim-modal .question-item input:focus,
    #new-muslim-modal .question-item select:focus {
        background: transparent !important;
        transform: none !important;
    }

    /* Section */
    .questions-container-modal .question-item .file-upload-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .questions-container-modal .question-item button[type="button"] {
        padding: 0.5rem 0.75rem;
        background: #718096;
        color: #ffffff;
        border: 1px solid #a0aec0;
        border-radius: 6px;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        width: fit-content;
    }

    .questions-container-modal .question-item button[type="button"]:hover {
        background: #8190a6;
        border-color: #b0bec6;
    }

    .questions-container-modal .question-item .file-info {
        padding: 0.5rem;
        background: #f7fafc;
        border-radius: 6px;
        font-size: 0.875rem;
        border: 1px solid #e2e8f0;
    }

    body:not(.dark-mode) .questions-container-modal .question-item .file-info {
        background: #f7fafc;
        border-color: #e2e8f0;
    }

    /* Modal Actions */
    .modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        /* Section */
        flex-shrink: 0;
        margin-bottom: 0;
    }

    body:not(.dark-mode) .modal-actions {
        border-top-color: #e5e7eb;
    }

    .btn-modal {
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        border: none;
        min-width: 100px;
        justify-content: center;
    }

    .btn-cancel {
        background: #ef4444;
        color: #ffffff;
        border: 1px solid #dc2626;
    }

    body:not(.dark-mode) .btn-cancel {
        background: #ef4444;
        border-color: #dc2626;
    }

    .btn-cancel:hover {
        background: #dc2626;
        border-color: #b91c1c;
    }

    .btn-save {
        background: #10b981;
        color: #ffffff;
        border: 1px solid #059669;
    }

    .btn-save:hover {
        background: #059669;
        border-color: #047857;
    }

    .btn-save:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* Result Message in Modal */
    .result-message-modal {
        margin-top: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        text-align: center;
        font-weight: 500;
        font-size: 0.875rem;
        animation: slideInMessage 0.2s ease;
    }

    @keyframes slideInMessage {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .result-message-modal.success {
        background: #f0f4f8;
        color: #2d3748;
        border: 1px solid #cbd5e0;
    }

    body:not(.dark-mode) .result-message-modal.success {
        background: #f0f4f8;
        color: #2d3748;
    }

    .result-message-modal.error {
        background: #fed7d7;
        color: #742a2a;
        border: 1px solid #fc8181;
    }

    body:not(.dark-mode) .result-message-modal.error {
        background: #fed7d7;
        color: #742a2a;
    }

    /* Mobile Responsive Chrome Mobile */
    @media (max-width: 768px) {

        /* modal-overlay padding */
        .modal-overlay {
            padding: 0.5rem !important;
        }

        .modal-container {
            max-height: 90dvh;
            /* height auto Chrome Mobile */
            /* display */
            display: flex;
            flex-direction: column;
            border-radius: 8px;
            width: 95%;
            /* Section */
            min-height: auto;
        }

        .modal-header {
            padding: 0.875rem 1rem;
            /* Section */
            flex-shrink: 0;
        }

        .modal-body {
            padding: 1rem;
            /* max-height */
            max-height: calc(90dvh - 180px);
            /* flex auto */
            flex: 0 1 auto;
            /* overflow */
            overflow-y: auto;
            overflow-x: hidden;
            /* min-height */
            min-height: auto;
        }

        .datetime-grid {
            grid-template-columns: 1fr;
        }

        .questions-container-modal {
            grid-template-columns: 1fr;
        }

        /* modal-actions */
        .modal-actions {
            flex-direction: column;
            /* margin-top */
            margin-top: 1rem;
            padding-top: 0.75rem;
            /* Section */
            flex-shrink: 0;
            /* margin-bottom */
            margin-bottom: 0;
        }

        .btn-modal {
            width: 100%;
        }

        /* padding/margin form */
        #new-muslim-form {
            margin-bottom: 0;
            padding-bottom: 0;
            display: flex;
            flex-direction: column;
            /* height */
            min-height: auto;
            height: auto;
        }

        /* form */
        #new-muslim-form .form-section:last-of-type {
            margin-bottom: 0;
        }

        /* margin-bottom form-section modal */
        #new-muslim-form .form-section {
            margin-bottom: 1rem;
        }

        /* padding modal-body */
        .modal-body {
            padding-bottom: 1rem;
        }

        /* result messages */
        #certificate-result,
        #new-muslim-result-message {
            margin-top: 0.75rem;
            margin-bottom: 0;
        }
    }

    @media (max-width: 480px) {
        .modal-overlay {
            padding: 0.25rem !important;
        }
        .modal-container {
            width: 100%;
            border-radius: 6px;
            max-height: 95dvh;
        }
        .modal-header {
            padding: 0.75rem 0.75rem;
        }
        .modal-title-wrapper h2 {
            font-size: 1rem;
        }
        .modal-body {
            padding: 0.75rem;
            max-height: calc(95dvh - 160px);
        }
        .modal-actions {
            margin-top: 0.75rem;
            padding-top: 0.5rem;
        }
        .btn-modal {
            padding: 0.5rem 0.75rem;
            font-size: 0.8rem;
            min-width: 80px;
        }
    }

    @media (max-width: 360px) {
        .modal-container {
            border-radius: 4px;
        }
        .modal-header {
            padding: 0.625rem 0.5rem;
        }
        .modal-body {
            padding: 0.5rem;
            max-height: calc(95dvh - 150px);
        }
        .modal-actions {
            gap: 0.5rem;
        }
    }

    /* Chrome Mobile vh dvh */
    @supports (-webkit-appearance: none) {
        @media (max-width: 768px) {
            .modal-container {
                /* vh dvh Chrome */
                max-height: 90vh;
            }

            .modal-body {
                max-height: calc(90vh - 180px);
            }
        }
    }

    /* A4 padding */

    /* Section */
    #certificate-artwork {
        aspect-ratio: 1.414 / 1;
    }

    /* Section */
    #certificate-preview-modal .modal-body,
    #certificate-render-wrap {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Section */
    @media (max-width: 640px) {
        #certificate-preview-modal {
            align-items: flex-start !important;
            padding: 8px !important;
        }
        #certificate-preview-modal .modal-container {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            border-radius: 12px !important;
            max-height: 96vh !important;
        }
        #certificate-preview-modal .modal-header {
            padding: 12px 14px !important;
        }
        #certificate-preview-modal .modal-header h2 {
            font-size: 1.05rem !important;
        }
        #certificate-preview-modal .modal-header p {
            font-size: 0.8rem !important;
        }
        #certificate-preview-modal .modal-body {
            padding: 10px !important;
            max-height: calc(96vh - 130px) !important;
            overflow-y: auto !important;
            gap: 10px !important;
        }
        #certificate-render-wrap {
            min-height: auto !important;
            border-radius: 10px !important;
        }
        #certificate-render,
        #certificate-artwork {
            width: 100% !important;
            max-width: 100% !important;
        }
        /* Section */
        #certificate-artwork {
            aspect-ratio: auto !important;
            min-height: 460px !important;
            height: auto !important;
        }
        #certificate-preview-modal .modal-actions {
            flex-wrap: wrap !important;
            gap: 8px !important;
            justify-content: stretch !important;
        }
        #certificate-preview-modal .modal-actions .btn-modal {
            flex: 1 1 calc(50% - 8px) !important;
            font-size: 0.88rem !important;
            padding: 10px 8px !important;
            min-width: 0 !important;
        }
    }

    /* iPhone SE */
    @media (max-width: 380px) {
        #certificate-preview-modal {
            padding: 4px !important;
        }
        #certificate-preview-modal .modal-container {
            border-radius: 8px !important;
            max-height: 98vh !important;
        }
        #certificate-preview-modal .modal-body {
            padding: 8px !important;
            max-height: calc(98vh - 110px) !important;
        }
        #certificate-artwork {
            min-height: 520px !important;
        }
        #certificate-preview-modal .modal-actions .btn-modal {
            flex: 1 1 100% !important;
            font-size: 0.85rem !important;
        }
    }



/* ---- page-range extract: dialogue-recording (1 blocks) ---- */
/* block 1 */

        #dialogue-recording-page .dialogue-section-tabs {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
            max-width: 1300px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 0.25rem;
        }

        #dialogue-recording-page .dialogue-section-tab {
            flex: 1;
            padding: 0.7rem 1rem;
            border: 1px solid rgba(30, 58, 138, 0.2);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.6);
            color: #1e3a8a;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 44px;
        }

        body.dark-mode #dialogue-recording-page .dialogue-section-tab {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
            color: #e0e0e0;
        }

        #dialogue-recording-page .dialogue-section-tab:hover {
            background: rgba(30, 58, 138, 0.1);
            transform: translateY(-1px);
        }

        #dialogue-recording-page .dialogue-section-tab.active {
            background: linear-gradient(135deg, #1e3a8a, #1e40af);
            color: #ffffff;
            border-color: transparent;
            box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
        }

        #dialogue-recording-page .dialogue-section-tab.active i {
            color: #ffffff;
        }

        @media (max-width: 640px) {
            #dialogue-recording-page .dialogue-section-tabs {
                flex-direction: column;
                gap: 0.5rem;
            }
        }
    

/* recovered from teacher-report range */
/* Header Optimization */
    #dialogue-recording-page .header {
        margin-bottom: 20px !important;
        padding: 15px 0 !important;
    }

    #dialogue-recording-page .header h1 {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        letter-spacing: 1px !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        animation: none !important;
    }

    #dialogue-recording-page .header h1::after {
        display: none !important;
    }

    #dialogue-recording-page .header h1 .header-icon {
        font-size: 1.6rem;
        color: var(--accent-color);
        filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
        transition: transform 0.3s ease;
    }

    #dialogue-recording-page .header h1:hover .header-icon {
        transform: scale(1.1) rotate(5deg);
    }

    #dialogue-recording-page .header p {
        font-size: 1rem !important;
        margin-top: 5px !important;
        opacity: 0.85 !important;
        font-weight: 400 !important;
        letter-spacing: 0.3px !important;
    }

    /* Form Container Optimization */
    #dialogue-recording-page .form-container {
        max-width: 900px !important;
        padding: 1.5rem !important;
        border-radius: 20px !important;
    }

    /* Question Items Optimization */
    #dialogue-recording-page .question-item {
        margin-bottom: 1.5rem !important;
        padding: 1.2rem !important;
        border-radius: 15px !important;
    }

    #dialogue-recording-page .question-text {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
        transform: none !important;
    }

    #dialogue-recording-page .question-text .question-icon {
        font-size: 1.2rem;
        opacity: 0.9;
    }

    #dialogue-recording-page .question-type {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
        transform: none !important;
    }

    #dialogue-recording-page .question-item input,
    #dialogue-recording-page .question-item select {
        padding: 12px 16px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        min-height: 44px !important;
    }

    #dialogue-recording-page .form-group {
        margin-bottom: 1.5rem !important;
    }

    #dialogue-recording-page .form-group label {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }

    #dialogue-recording-page .form-group input,
    #dialogue-recording-page .form-group select,
    #dialogue-recording-page .form-group textarea {
        padding: 12px 16px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
    }

    #dialogue-recording-page .submit-btn {
        padding: 14px 28px !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
        min-height: 48px !important;
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
        #dialogue-recording-page .header h1 {
            font-size: 1.5rem !important;
            gap: 10px !important;
        }

        #dialogue-recording-page .header h1 .header-icon {
            font-size: 1.4rem;
        }

        #dialogue-recording-page .header p {
            font-size: 0.9rem !important;
        }

        #dialogue-recording-page .form-container {
            padding: 1.2rem !important;
        }

        #dialogue-recording-page .question-item {
            padding: 1rem !important;
            margin-bottom: 1.2rem !important;
        }

        #dialogue-recording-page .question-text {
            font-size: 1rem !important;
        }

        #dialogue-recording-page .question-type {
            font-size: 0.8rem !important;
            padding: 5px 10px !important;
        }
    }

    /* Small Mobile */
    @media (max-width: 480px) {
        #dialogue-recording-page .header h1 {
            font-size: 1.3rem !important;
            gap: 8px !important;
        }

        #dialogue-recording-page .header h1 .header-icon {
            font-size: 1.2rem;
        }

        #dialogue-recording-page .header p {
            font-size: 0.85rem !important;
        }

        #dialogue-recording-page .form-container {
            padding: 1rem !important;
        }

        #dialogue-recording-page .question-item {
            padding: 0.9rem !important;
        }

        #dialogue-recording-page .question-text {
            font-size: 0.95rem !important;
        }
    }

    /* Tablet Optimization */
    @media (min-width: 769px) and (max-width: 1024px) {
        #dialogue-recording-page .form-container {
            max-width: 850px !important;
        }

        #dialogue-recording-page .header h1 {
            font-size: 1.7rem !important;
        }
    }



/* block 5 */

    /* SECTION */

    /* Section */
    .auto-datetime-display {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 1rem;
    }

    .datetime-item {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
        backdrop-filter: blur(10px);
        border: 2px solid rgba(99, 102, 241, 0.3);
        border-radius: 16px;
        padding: 1.2rem 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    body:not(.dark-mode) .datetime-item {
        background: linear-gradient(135deg, #e0e7ff, #dbeafe);
        border-color: rgba(30, 58, 138, 0.3);
    }

    .datetime-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .datetime-item:hover::before {
        left: 100%;
    }

    .datetime-item:hover {
        transform: translateY(-3px);
        border-color: rgba(99, 102, 241, 0.5);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    }

    .datetime-icon {
        font-size: 2rem;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        animation: pulse 2s ease-in-out infinite;
    }

    .datetime-text {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-light);
        letter-spacing: 0.5px;
    }

    body:not(.dark-mode) .datetime-text {
        color: #1e293b;
    }

    /* Section */
    .question-item {
        margin-bottom: 2rem;
        padding: 1.8rem;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
        border-radius: 20px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(15px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    body:not(.dark-mode) .question-item {
        background: linear-gradient(135deg, #e0e7ff, #dbeafe);
        border: 2px solid rgba(30, 58, 138, 0.2);
        box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
    }

    .question-item::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #6366f1, #8b5cf6, #ec4899);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .question-item:hover::after {
        opacity: 1;
    }

    .question-item::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .question-item:hover::before {
        opacity: 1;
    }

    .question-item:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 16px 40px rgba(99, 102, 241, 0.25);
        border-color: rgba(99, 102, 241, 0.4);
    }

    body:not(.dark-mode) .question-item:hover {
        box-shadow: 0 12px 35px rgba(99, 102, 241, 0.15);
        border-color: rgba(99, 102, 241, 0.3);
    }

    /* Section */
    .question-text {
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text-light);
        font-size: 1.25rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 12px;
        line-height: 1.5;
        letter-spacing: 0.3px;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    body:not(.dark-mode) .question-text {
        color: #1e293b;
        border-bottom-color: #e2e8f0;
    }

    .question-text .question-icon {
        font-size: 1.5rem;
        opacity: 1;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-5px);
        }
    }

    /* Section */
    .question-type {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 1.2rem;
        padding: 0.5rem 1rem;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
        backdrop-filter: blur(8px);
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.3px;
    }

    body:not(.dark-mode) .question-type {
        background: linear-gradient(135deg, #ede9fe, #f3e8ff);
        border: 1px solid #e2e8f0;
        color: #6366f1;
        text-shadow: none;
    }

    /* Section */
    .question-item input,
    .question-item select {
        width: 100%;
        padding: 1rem 1.25rem;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 14px;
        font-size: 1.05rem;
        color: var(--text-light);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(8px);
        min-height: 52px;
        font-weight: 500;
    }

    body:not(.dark-mode) .question-item input,
    body:not(.dark-mode) .question-item select {
        background: #ffffff;
        border: 2px solid #e2e8f0;
        color: #1e293b;
    }

    .question-item input::placeholder {
        color: rgba(255, 255, 255, 0.5);
        font-size: 1rem;
    }

    body:not(.dark-mode) .question-item input::placeholder {
        color: #94a3b8;
    }

    .question-item input:focus,
    .question-item select:focus {
        outline: none;
        border-color: #6366f1;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 8px 25px rgba(99, 102, 241, 0.15);
        transform: translateY(-2px);
    }

    body:not(.dark-mode) .question-item input:focus,
    body:not(.dark-mode) .question-item select:focus {
        background: #ffffff;
        border-color: #6366f1;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 8px 25px rgba(99, 102, 241, 0.1);
    }

    .question-item select {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 1.25rem center;
        padding-right: 2.5rem;
    }

    .question-item select option {
        background: #ffffff;
        color: #1e293b;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Section */
    .submit-btn {
        background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
        border: none;
        padding: 1.2rem 2.5rem;
        border-radius: 16px;
        font-size: 1.2rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
        position: relative;
        overflow: hidden;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        color: #ffffff;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        margin: 2rem auto 0;
        max-width: 400px;
    }

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }

    .submit-btn:hover::before {
        left: 100%;
    }

    .submit-btn:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 16px 40px rgba(99, 102, 241, 0.4);
    }

    .submit-btn:active {
        transform: translateY(-2px) scale(0.98);
    }

    .submit-btn i {
        font-size: 1.3rem;
        animation: bounce 2s ease-in-out infinite;
    }

    @keyframes bounce {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-3px);
        }
    }

    /* Section */
    .btn-back {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 2rem;
        font-size: 1.1rem;
        padding: 1rem 2rem;
        border-radius: 14px;
        transition: all 0.3s ease;
        color: var(--text-light);
        font-weight: 600;
    }

    body:not(.dark-mode) .btn-back {
        background: #ffffff;
        border-color: #e2e8f0;
        color: #1e293b;
    }

    .btn-back:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateX(-5px);
    }

    body:not(.dark-mode) .btn-back:hover {
        background: #f8fafc;
        border-color: #6366f1;
        color: #6366f1;
    }

    /* Section */
    #dynamic-questions h3 {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--text-light);
        font-size: 1.5rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1rem;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
        border-radius: 16px;
        border: 2px solid rgba(99, 102, 241, 0.2);
    }

    body:not(.dark-mode) #dynamic-questions h3 {
        color: #1e293b;
        background: linear-gradient(135deg, #f0f4ff, #faf5ff);
        border-color: rgba(99, 102, 241, 0.2);
    }

    #dynamic-questions h3 i {
        font-size: 1.5rem;
        color: #6366f1;
        animation: rotate 3s linear infinite;
    }

    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* Section */
    .question-item button[onclick*="file"] {
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        border: none;
        padding: 0.875rem 1.5rem;
        border-radius: 12px;
        color: #ffffff;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .question-item button[onclick*="file"]:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }

    /* Section */
    [id^="file_info_"] {
        background: rgba(99, 102, 241, 0.1) !important;
        border: 2px solid rgba(99, 102, 241, 0.2) !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        margin-top: 0.75rem !important;
    }

    body:not(.dark-mode) [id^="file_info_"] {
        background: #f0f4ff !important;
        border-color: rgba(99, 102, 241, 0.3) !important;
    }

    /* Section */
    .form-container {
        max-width: 950px;
        width: 95%;
        margin: 0 auto;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2.5rem;
        border-radius: 24px;
        border: 2px solid var(--glass-border);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        color: var(--text-light);
        animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body:not(.dark-mode) .form-container {
        background: #ffffff;
        border: 2px solid #e2e8f0;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    }

    /* Header */
    .header {
        text-align: center;
        margin-bottom: 2.5rem;
        color: var(--text-light);
        padding: 1.5rem 0;
    }

    .header h1 {
        font-size: 2.2rem;
        font-weight: 800;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
        line-height: 1.3;
        color: var(--text-light);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    body:not(.dark-mode) .header h1 {
        color: #1e293b;
        text-shadow: none;
    }

    .header h1 .header-icon {
        font-size: 2rem;
        color: #6366f1;
        filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.4));
        transition: transform 0.3s ease;
        animation: pulse 2s ease-in-out infinite;
    }

    .header h1:hover .header-icon {
        transform: scale(1.15) rotate(10deg);
    }

    .header p {
        font-size: 1.15rem;
        margin-top: 0.5rem;
        opacity: 0.9;
        font-weight: 500;
        line-height: 1.5;
        color: var(--text-light);
    }

    body:not(.dark-mode) .header p {
        color: #64748b;
        opacity: 1;
    }

    /* Section */
    @media (max-width: 768px) {
        .form-container {
            padding: 1.5rem;
            border-radius: 20px;
        }

        .question-item {
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .header h1 {
            font-size: 1.75rem;
        }

        .datetime-item {
            padding: 1rem;
        }

        .submit-btn {
            padding: 1rem 2rem;
            font-size: 1.1rem;
        }
    }


/* block 6 */

    /* SECTION */

    /* Section */
    .dialogue-country-select .dcs-trigger {
        font-family: inherit;
    }

    .dialogue-country-select .dcs-trigger:hover {
        border-color: #94a3b8 !important;
        background: #f8fafc !important;
    }

    .dialogue-country-select .dcs-trigger:focus {
        outline: none;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    }

    /* Section */
    .dialogue-country-select .dcs-trigger[aria-expanded="true"] i.fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Section */
    .dialogue-country-select .dcs-search {
        font-family: inherit;
    }

    .dialogue-country-select .dcs-search:focus {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
    }

    /* Section */
    .dcs-option {
        user-select: none;
    }

    .dcs-option:hover {
        background: #f1f5f9 !important;
    }

    .dcs-option:active {
        background: #e2e8f0 !important;
    }

    .dcs-option:last-child {
        border-bottom: none !important;
    }

    /* Section */
    .dcs-option.dcs-option-active {
        background: #e0e7ff !important;
    }

    /* Section */
    .dcs-list::-webkit-scrollbar {
        width: 8px;
    }

    .dcs-list::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 4px;
    }

    .dcs-list::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 4px;
    }

    .dcs-list::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    /* =================================================================
    // Dark Mode Support
    // ================================================================= */

    body.dark-mode .dialogue-country-select .dcs-trigger {
        background: #1e293b !important;
        border-color: #475569 !important;
        color: #e2e8f0 !important;
    }

    body.dark-mode .dialogue-country-select .dcs-trigger:hover {
        background: #334155 !important;
    }

    body.dark-mode .dialogue-country-select .dcs-trigger:focus {
        border-color: #60a5fa !important;
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2) !important;
    }

    body.dark-mode .dialogue-country-select .dcs-display-text {
        color: #94a3b8 !important;
    }

    body.dark-mode .dcs-dropdown {
        background: #1e293b !important;
        border-color: #475569 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    }

    body.dark-mode .dcs-dropdown > div {
        background: #0f172a !important;
        border-bottom-color: #334155 !important;
    }

    body.dark-mode .dcs-search {
        background: #0f172a !important;
        border-color: #475569 !important;
        color: #e2e8f0 !important;
    }

    body.dark-mode .dcs-option {
        color: #e2e8f0 !important;
        border-bottom-color: #334155 !important;
    }

    body.dark-mode .dcs-option:hover {
        background: #334155 !important;
    }

    body.dark-mode .dcs-option.dcs-option-active {
        background: #1e3a8a !important;
    }

    body.dark-mode .dcs-no-results {
        color: #64748b !important;
    }

    body.dark-mode .dcs-list::-webkit-scrollbar-track {
        background: #0f172a;
    }

    body.dark-mode .dcs-list::-webkit-scrollbar-thumb {
        background: #475569;
    }

    body.dark-mode .dcs-list::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }

    /* Section */

    input[type="tel"][data-question-type="phone"] {
        position: relative;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.3px;
    }

    input[type="tel"][data-question-type="phone"]:focus {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        outline: none;
    }

    input[type="tel"][data-question-type="phone"]::placeholder {
        color: #94a3b8;
        opacity: 1;
    }

    body.dark-mode input[type="tel"][data-question-type="phone"] {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: #475569 !important;
        color: #e2e8f0 !important;
    }

    body.dark-mode input[type="tel"][data-question-type="phone"]:focus {
        border-color: #60a5fa !important;
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    }

    body.dark-mode input[type="tel"][data-question-type="phone"]::placeholder {
        color: #64748b;
    }

    /* =================================================================
    // Responsive - Mobile
    // ================================================================= */

    @media (max-width: 768px) {
        .dialogue-country-select .dcs-trigger {
            padding: 0.75rem 0.9rem !important;
            font-size: 1rem !important;
        }

        .dcs-dropdown {
            max-height: 280px !important;
        }

        .dcs-list {
            max-height: 220px !important;
        }

        .dcs-option {
            padding: 12px 14px !important;
        }

        .dcs-option-en {
            display: none !important;
        }
    }


/* block 7 */

/* SECTION Dashboard Styles */

    /* Section */
    .btn-dashboard-toggle {
        background: #6366f1;
        color: #ffffff;
        border: 1px solid #4f46e5;
        padding: 0.75rem 1.5rem;
        border-radius: 6px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-dashboard-toggle:hover {
        background: #4f46e5;
    }

    /* Section */
    .muslims-dashboard {
        max-width: 1000px;
        width: 95%;
        margin: 2rem auto;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 1.5rem;
    }

    /* Section */
    .dashboard-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: none;
    }

    .dashboard-header h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1f2937;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0;
    }

    body.dark-mode .dashboard-header h3 {
        color: #f9fafb;
    }

    .dashboard-header h3 i {
        color: #6366f1;
        font-size: 1.1rem;
    }

    .dashboard-refresh-btn {
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        padding: 0.5rem 0.75rem;
        cursor: pointer;
        transition: background 0.2s ease;
        color: #6b7280;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.dark-mode .dashboard-refresh-btn {
        background: #374151;
        border-color: #4b5563;
        color: #9ca3af;
    }

    .dashboard-refresh-btn:hover {
        background: #e5e7eb;
    }

    body.dark-mode .dashboard-refresh-btn:hover {
        background: #4b5563;
    }

    /* Section */
    .dashboard-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 1rem;
    }

    .stat-card {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 1.25rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .stat-content {
        flex: 1;
    }

    .stat-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #6b7280;
        margin-bottom: 0.5rem;
    }

    body.dark-mode .stat-label {
        color: #9ca3af;
    }

    .stat-value {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1f2937;
        line-height: 1;
    }

    body.dark-mode .stat-value {
        color: #f9fafb;
    }

    /* Section */
    .dashboard-loading {
        text-align: center;
        padding: 2rem;
        color: #6b7280;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    body.dark-mode .dashboard-loading {
        color: #9ca3af;
    }

    .spinner-small {
        width: 24px;
        height: 24px;
        border: 3px solid #e5e7eb;
        border-top: 3px solid #6366f1;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    body.dark-mode .spinner-small {
        border-color: #374151;
        border-top-color: #6366f1;
    }

    /* Section */
    .dashboard-error {
        background: #fee2e2;
        border: 1px solid #fecaca;
        border-radius: 6px;
        padding: 1rem;
        color: #991b1b;
        text-align: center;
        margin-top: 1rem;
    }

    body.dark-mode .dashboard-error {
        background: #7f1d1d;
        border-color: #991b1b;
        color: #fecaca;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .new-muslim-button-container {
            flex-direction: column;
        }

        .btn-new-muslim,
        .btn-dashboard-toggle {
            width: 100%;
            justify-content: center;
        }
    }


    #duplicate-confirmation-modal .modal-container {
        background: #ffffff !important;
        animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    body.dark-mode #duplicate-confirmation-modal .modal-container {
        background: #1e293b !important;
    }

    body.dark-mode #duplicate-confirmation-modal h2 {
        color: #f8fafc !important;
    }

    body.dark-mode #duplicate-confirmation-modal #duplicate-modal-message {
        color: #94a3b8 !important;
    }

    @keyframes modalSlideIn {
        from {
            transform: scale(0.8);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    .duplicate-warning-icon i {
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    }




    .btn-certificate {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: #ffffff;
        border: 1px solid #d97706;
    }

    .btn-certificate:hover {
        background: linear-gradient(135deg, #d97706, #b45309);
        border-color: #b45309;
    }

    body:not(.dark-mode) .btn-certificate {
        border-color: #d97706;
    }

    /* Mobile Responsive for Duplicate Confirmation Modal */
    @media (max-width: 768px) {
        #duplicate-confirmation-modal .modal-container {
            width: 95% !important;
            max-width: 95vw !important;
            max-height: 90vh !important;
            max-height: 90dvh !important;
            padding: 20px 16px !important;
            border-radius: 20px !important;
            overflow-y: auto !important;
        }

        #duplicate-confirmation-modal .modal-actions {
            gap: 12px !important;
        }
    }

    @media (max-width: 480px) {
        #duplicate-confirmation-modal .modal-container {
            width: 100% !important;
            max-width: 100vw !important;
            border-radius: 12px !important;
            padding: 16px 12px !important;
        }

        #duplicate-confirmation-modal h2 {
            font-size: 1.2rem !important;
        }

        #duplicate-confirmation-modal #duplicate-modal-message {
            font-size: 0.9rem !important;
        }

        #duplicate-confirmation-modal .modal-actions {
            flex-direction: column !important;
            gap: 10px !important;
        }
    }


/* restored from approvals.css — dialogue table pens/edit */
/* Section */

/* Section */
#admin-submenu.open { max-height: 420px; }
.btn-inline-edit, .btn-inline-cancel {
  border: none; cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .85rem;
  transition: all .2s ease;
}
.btn-inline-edit { background: #eef2ff; color: #3730a3; }
.btn-inline-edit:hover { background: #e0e7ff; transform: translateY(-1px); }
.btn-inline-cancel { background: #fef2f2; color: #b91c1c; }
.btn-inline-cancel:hover { background: #fee2e2; }

tr.row-editing { outline: 2px solid #6366f1; outline-offset: -2px; background: #eef2ff66 !important; }
tr.row-editing td.editable-cell {
  background: #fffbeb; cursor: text; min-height: 20px;
  box-shadow: inset 0 0 0 1px #fcd34d;
}
td.editable-cell.cell-dirty {
  background: #fef3c7 !important; box-shadow: inset 0 0 0 2px #f59e0b; border-radius: 4px;
}
tr:not(.row-editing) td.editable-cell { cursor: default; }

/* Section */

/* Section */
.btn-mark-row {
  border: 1px solid #e2e8f0; background: #f8fafc; color: #94a3b8;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; transition: all .2s ease;
}
.btn-mark-row:hover { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.btn-mark-row.active {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  border-color: #d97706; box-shadow: 0 4px 10px -4px rgba(245, 158, 11, .7);
}

/* Section */
tr.row-marked > td { background: #fef9c3 !important; }
tr.row-marked > td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
body.dark-mode tr.row-marked > td { background: #453112 !important; }

/* Section */
.btn-view-toggle { background: #eef2ff; color: #3730a3; }
.btn-view-toggle:hover { background: #e0e7ff; }

/* Section */
.recent-table-wrapper.view-cards { overflow-x: visible; }
.recent-table-wrapper.view-cards .recent-table { min-width: 0; }
.recent-table-wrapper.view-cards thead { display: none; }
.recent-table-wrapper.view-cards .recent-table,
.recent-table-wrapper.view-cards tbody { display: block; width: 100%; }
.recent-table-wrapper.view-cards tr {
  display: block; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; margin-bottom: 12px; padding: 4px 6px;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, .14);
}
body.dark-mode .recent-table-wrapper.view-cards tr { background: #1e293b; border-color: rgba(255,255,255,.08); }
.recent-table-wrapper.view-cards td {
  display: flex; align-items: center; gap: 10px;
  border: none !important; border-bottom: 1px dashed #f1f5f9 !important;
  padding: 7px 10px !important; text-align: right; white-space: normal;
}
.recent-table-wrapper.view-cards td:last-child { border-bottom: none !important; }
.recent-table-wrapper.view-cards td[data-field]::before {
  content: attr(data-field);
  font-weight: 800; color: #64748b; min-width: 88px; font-size: .78rem; flex-shrink: 0;
}
.recent-table-wrapper.view-cards td.mark-cell {
  justify-content: flex-end; border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc; border-radius: 10px 10px 0 0;
}
/* Section */
.recent-table-wrapper.view-cards td.phone-cell { direction: ltr; flex-direction: row-reverse; }
.recent-table-wrapper.view-cards td.phone-cell::before { direction: rtl; }
/* Section */
.recent-table-wrapper.view-cards td:last-of-type::before { content: none; }
.recent-table-wrapper.view-cards td:last-of-type { justify-content: center; gap: 12px; }
/* Section */
.recent-table-wrapper.view-cards tr.row-marked { border-color: #f59e0b; box-shadow: 0 4px 16px -6px rgba(245, 158, 11, .45); }

/* Section */
.wa-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ebe57); color: #fff !important;
  font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 4px 10px -4px rgba(37, 211, 102, .85);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-link:hover { transform: scale(1.15); box-shadow: 0 6px 14px -4px rgba(37, 211, 102, .95); }
tr.row-editing td.phone-cell { cursor: text; }
.recent-table-wrapper.view-cards td.phone-cell .wa-link { order: 1; }

/* Section */
@media (max-width: 640px) {
  .apr-hero { padding: 20px; }
  .apr-hero-text h1 { font-size: 1.3rem; }
  .apr-hero-side { width: 100%; }
  .apr-stat-chip { flex: 1; }
  .apr-tab { padding: 10px 13px; font-size: .85rem; }
  .apr-refresh { margin-inline-start: 0; }
  .apr-actions .apr-btn { flex: 1; justify-content: center; }
}


/* Action Buttons in Table */
    .btn-inline-save {
        background: #ffffff;
        color: #3b82f6;
        border: 1.5px solid #e2e8f0;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
    }

    .btn-inline-save:hover {
        background: #3b82f6;
        color: #ffffff;
        border-color: #3b82f6;
        transform: translateY(-2px);
    }

    body.dark-mode .btn-inline-save {
        background: #334155;
        border-color: #475569;
        color: #60a5fa;
    }

    .btn-inline-delete {
        background: #ffffff;
        color: #ef4444;
        border: 1.5px solid #fee2e2;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
    }

    .btn-inline-delete:hover {
        background: #ef4444;
        color: #ffffff;
        border-color: #ef4444;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    }

    body.dark-mode .btn-inline-delete {
        background: #450a0a;
        border-color: #7f1d1d;
        color: #f87171;
    }

    