/* Test Platform Responsive Styles */

/* Blank Layout Override for Test Shell */
.app-blank .card {
    background-color: #ffffff !important;
    border-color: #e4e6ea !important;
}

.app-blank .card-header {
    border-bottom-color: #e4e6ea !important;
    background-color: #f8f9fa !important;
}

.app-blank .table {
    color: #181c32 !important;
}

.app-blank .table td {
    border-color: #e4e6ea !important;
}

/* Hide header and sidebar for test shell */
.app-blank #kt_app_header,
.app-blank #kt_app_sidebar,
.app-blank #kt_app_toolbar,
.app-blank .app-header,
.app-blank .app-sidebar,
.app-blank .app-toolbar {
    display: none !important;
}

.app-blank .app-page {
    padding-top: 0 !important;
    padding-left: 0 !important;
}

.app-blank .app-wrapper {
    padding-top: 0 !important;
    padding-left: 0 !important;
}

/* Test Content Styles */
.test-container {
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Pre-test overlay */
.pretest-lock-scroll {
    overflow: hidden;
}

.test-lock-scroll {
    overflow: hidden;
}

.pretest-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 28, 50, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pretest-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.pretest-modal {
    width: min(680px, 100%);
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.35);
    max-height: 90vh;
    overflow-y: auto;
}

.pretest-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 0.5rem;
}

.pretest-modal-subtitle {
    color: #5c6078;
    margin: 0;
}

.pretest-consent {
    margin-top: 1.5rem;
    background: #f4f6fb;
    border: 1px solid rgba(62, 151, 255, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
}

.pretest-consent-text p {
    margin-bottom: 0.75rem;
    color: #3f4254;
}

.pretest-consent-meta {
    font-size: 0.875rem;
    color: #7e8299;
}

.pretest-consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    font-weight: 500;
    color: #181c32;
}

.pretest-consent-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
}

.pretest-consent-error {
    color: #d9214e;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    display: none;
}

.pretest-consent-error.is-visible {
    display: block;
}

.pretest-status-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pretest-status-item {
    background: #f9fafc;
    border: 1px solid #eff2f5;
    border-radius: 12px;
    padding: 1.25rem;
}

.pretest-status-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pretest-status-actions .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.pretest-camera-preview {
    margin-top: 0.75rem;
    border: 1px dashed rgba(62, 151, 255, 0.35);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(62, 151, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.pretest-camera-preview video {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
}

.pretest-camera-preview .pretest-camera-hint {
    font-size: 0.85rem;
    color: #3f4254;
    text-align: center;
}

.pretest-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.pretest-status-title {
    font-weight: 600;
    color: #181c32;
}

.pretest-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.pretest-status-pending {
    background: #fff;
    color: #5e6278;
    border-color: #dfe3ee;
}

.pretest-status-running {
    background: rgba(62, 151, 255, 0.12);
    color: #3e97ff;
    border-color: rgba(62, 151, 255, 0.35);
}

.pretest-status-success {
    background: rgba(57, 192, 121, 0.12);
    color: #2f9e44;
    border-color: rgba(57, 192, 121, 0.35);
}

.pretest-status-warning {
    background: rgba(255, 195, 113, 0.18);
    color: #f08c00;
    border-color: rgba(255, 195, 113, 0.38);
}

.pretest-status-error {
    background: rgba(217, 33, 78, 0.12);
    color: #c9184a;
    border-color: rgba(217, 33, 78, 0.35);
}

.pretest-status-text {
    color: #5c6078;
    font-size: 0.95rem;
    line-height: 1.45;
}

.pretest-message {
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    display: none;
}

.pretest-message-success {
    display: block;
    background: rgba(57, 192, 121, 0.12);
    color: #2f9e44;
}

.pretest-message-warning {
    display: block;
    background: rgba(255, 195, 113, 0.18);
    color: #f08c00;
}

.pretest-message-error {
    display: block;
    background: rgba(217, 33, 78, 0.12);
    color: #c9184a;
}

.pretest-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pretest-actions .btn {
    min-width: 130px;
}

@media (max-width: 576px) {
    .pretest-modal {
        padding: 1.75rem;
    }

    .pretest-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .pretest-actions .btn {
        width: 100%;
    }
}

/* Test lock overlay */
.test-lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 28, 50, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.test-lock-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.test-lock-modal {
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 18px 80px rgba(15, 23, 42, 0.45);
    text-align: center;
}

.test-lock-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(217, 33, 78, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9184a;
}

.test-lock-modal h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 0.75rem;
}

.test-lock-message {
    color: #3f4254;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.test-lock-meta .badge {
    font-size: 0.95rem;
    padding: 0.45rem 0.9rem;
}

.test-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.test-title {
    color: #495057;
    margin-bottom: 10px;
}

.test-info {
    color: #6c757d;
    font-size: 14px;
}

.question {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.question-text {
    font-weight: 600;
    margin-bottom: 15px;
    color: #495057;
}

.options {
    list-style: none;
    padding: 0;
}

.option {
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.option:hover {
    background-color: #e9ecef;
    border-color: #3E97FF;
}

.option.selected {
    background-color: #3E97FF;
    color: white;
    border-color: #3E97FF;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
}

.progress-fill {
    height: 100%;
    background-color: #3E97FF;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Mobile First Approach */
@media (max-width: 576px) {
    /* Assignments Page Mobile */
    .page-title {
        padding: 1rem 0;
    }
    
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    /* Assignment Cards Mobile */
    .card-header {
        padding: 1rem;
    }
    
    .card-title h2 {
        font-size: 1.25rem;
    }
    
    /* Table Mobile */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table td {
        padding: 0.5rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Session Hub Mobile */
    .stepper-pills .stepper-item {
        margin-bottom: 1rem;
    }
    
    .stepper-icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    .stepper-title {
        font-size: 1rem;
    }
    
    .stepper-desc {
        font-size: 0.75rem;
    }
    
    /* Test Shell Mobile */
    #kt_test_header {
        padding: 0.5rem 0;
    }
    
    #kt_test_header .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    #kt_test_timer {
        font-size: 1.5rem;
    }
    
    .progress {
        width: 80px !important;
    }
    
    /* Drawers Mobile */
    .drawer {
        width: 100% !important;
    }
    
    .drawer-header {
        padding: 1rem;
    }
    
    .drawer-body {
        padding: 1rem;
    }
    
    /* Floating Action Buttons Mobile */
    .position-fixed.bottom-0.end-0 {
        bottom: 1rem !important;
        right: 1rem !important;
    }
    
    .btn-lg {
        width: 48px;
        height: 48px;
    }
    
    /* iFrame Mobile */
    #kt_test_iframe {
        height: calc(100vh - 150px) !important;
        min-height: 400px !important;
    }
}

/* Tablet Portrait */
@media (min-width: 577px) and (max-width: 768px) {
    /* Assignments Page Tablet */
    .card-header {
        padding: 1.5rem;
    }
    
    /* Session Hub Tablet */
    .stepper-pills {
        flex-direction: column;
    }
    
    .stepper-item {
        margin-bottom: 1.5rem;
    }
    
    /* Test Shell Tablet */
    #kt_test_header {
        padding: 1rem 0;
    }
    
    #kt_test_iframe {
        height: calc(100vh - 180px) !important;
        min-height: 500px !important;
    }
    
    /* Drawers Tablet */
    .drawer {
        width: 350px !important;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 992px) {
    /* Session Hub Tablet Landscape */
    .stepper-pills {
        flex-direction: row;
    }
    
    .stepper-item {
        margin-bottom: 0;
    }
    
    /* Test Shell Tablet Landscape */
    #kt_test_iframe {
        height: calc(100vh - 200px) !important;
        min-height: 600px !important;
    }
}

/* Desktop Small */
@media (min-width: 993px) and (max-width: 1200px) {
    /* Test Shell Desktop Small */
    #kt_test_iframe {
        height: calc(100vh - 220px) !important;
        min-height: 700px !important;
    }
}

/* Desktop Large */
@media (min-width: 1201px) and (max-width: 1400px) {
    /* Test Shell Desktop Large */
    #kt_test_iframe {
        height: calc(100vh - 240px) !important;
        min-height: 800px !important;
    }
}

/* Desktop Extra Large */
@media (min-width: 1401px) {
    /* Test Shell Desktop Extra Large */
    #kt_test_iframe {
        height: calc(100vh - 260px) !important;
        min-height: 900px !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .stepper-line,
    .drawer,
    .toast,
    .modal {
        transition: none !important;
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
    
    .badge {
        border: 1px solid #000;
    }
}

/* Print Styles */
@media print {
    .btn,
    .drawer,
    .position-fixed,
    .toast-container {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .page-title {
        color: #000;
    }
    
    #kt_test_iframe {
        height: auto !important;
        min-height: 600px !important;
    }
}

/* Focus Management for Accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid #3E97FF;
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3E97FF;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error States */
.error {
    border-color: #F1416C !important;
    box-shadow: 0 0 0 0.2rem rgba(241, 65, 108, 0.25);
}

/* Success States */
.success {
    border-color: #50CD89 !important;
    box-shadow: 0 0 0 0.2rem rgba(80, 205, 137, 0.25);
}

/* Warning States */
.warning {
    border-color: #FFC700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 199, 0, 0.25);
}

/* Modern Question Header Design */
.question-header-modern {
    padding: 0;
}

.question-number-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #3E97FF 0%, #2B7CD6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(62, 151, 255, 0.25);
}

.question-header-modern h4 {
    font-size: 18px;
    font-weight: 700;
    color: #181c32;
    margin: 0;
}

.question-text-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 2px solid #3E97FF;
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.question-text-content {
    font-size: 14px;
    font-weight: 450;
    color: #181c32;
    line-height: 1.8;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Mobile responsive for question header */
@media (max-width: 576px) {
    .question-number-badge {
        width: 25px;
        height: 30px;
        min-width: 40px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .question-header-modern h4 {
        font-size: 16px;
    }
    
    .question-text-container {
        padding: 16px 18px;
        border-radius: 10px;
    }
    
    .question-text-content {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* Modern Question Option Cards - Clean & Minimal Design */
/* Ensure container is column layout */
#testContent .question-options-container,
.card-body .question-options-container,
.card .card-body .question-options-container,
.question-options-container {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Override any parent flex containers that might force row layout */
#testContent[style*="flex-direction: row"],
.card-body[style*="flex-direction: row"] .question-options-container {
    flex-direction: column !important;
}

#testContent .question-options-container > *,
#testContent .question-options-container > label,
.card-body .question-options-container > *,
.card-body .question-options-container > label,
.question-options-container > *,
.question-options-container > label {
    width: 100% !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Override any row/col classes that might interfere */
.card-body .question-options-container .row,
.question-options-container .row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
}

.card-body .question-options-container .col-12,
.card-body .question-options-container .col-md-6,
.card-body .question-options-container .col,
.question-options-container .col-12,
.question-options-container .col-md-6,
.question-options-container .col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

#testContent .modern-option-card,
.card-body .modern-option-card,
.card .card-body .modern-option-card,
.question-options-container .modern-option-card,
.question-options-container label,
.modern-option-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 6px 8px !important;
    background: #ffffff !important;
    border: 1px solid #e4e6ea !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    min-height: 56px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    float: none !important;
    clear: both !important;
}

.modern-option-card:hover {
    border-color: #b5d4ff !important;
    background-color: #f8fbff !important;
}

.modern-option-card.active {
    border-color: #3E97FF !important;
    background: linear-gradient(135deg, #f1f8ff 0%, #ffffff 100%) !important;
    box-shadow: 0 2px 8px rgba(62, 151, 255, 0.12) !important;
}

.option-letter {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    flex-shrink: 0 !important;
    background-color: #f5f8fa !important;
    color: #7e8299 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border-radius: 50px !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
}

.modern-option-card:hover .option-letter {
    background-color: #e1efff !important;
    color: #3E97FF !important;
    border-color: #b5d4ff !important;
}

.modern-option-card.active .option-letter {
    background-color: #3E97FF !important;
    color: #ffffff !important;
    border-color: #3E97FF !important;
    box-shadow: 0 2px 6px rgba(62, 151, 255, 0.25) !important;
}

.option-text {
    flex: 1 !important;
    font-weight: 500 !important;
    color: #181c32 !important;
    line-height: 1.5 !important;
    transition: color 0.2s ease !important;
    min-width: 0 !important;
}

.modern-option-card:hover .option-text {
    color: #3E97FF !important;
}

.modern-option-card.active .option-text {
    color: #181c32 !important;
    font-weight: 600 !important;
}

.option-check-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    flex-shrink: 0 !important;
    background-color: #3E97FF !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.modern-option-card.active .option-check-icon {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .modern-option-card {
        padding: 12px 16px !important;
        gap: 12px !important;
        min-height: 52px !important;
    }
    
    .option-letter {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 14px !important;
    }
    
    .option-text {
        font-size: 14px !important;
    }
    
    .option-check-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }
}

/* Focus state for accessibility */
.modern-option-card:focus-within {
    outline: 2px solid #3E97FF;
    outline-offset: 2px;
}

/* Active/pressed state */
.modern-option-card:active {
    transform: scale(0.98);
}

.modern-option-card.active:active {
    transform: scale(0.98);
}

/* Modern Audio Player Styles */
.audio-player-modern {
    background: linear-gradient(135deg, #f5f8fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e4e6ea;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audio-player-modern:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.audio-player-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.audio-player-circle {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-play-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3E97FF 0%, #2B7CD6 100%);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(62, 151, 255, 0.4), 
                0 0 0 0 rgba(62, 151, 255, 0.5),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    padding: 0;
    overflow: visible;
}

.audio-play-btn:hover:not(.disabled) {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(62, 151, 255, 0.5), 
                0 0 0 8px rgba(62, 151, 255, 0.1),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #2B7CD6 0%, #1E5FA3 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.audio-play-btn:active:not(.disabled) {
    transform: scale(0.95);
}

.audio-play-btn.disabled {
    background: linear-gradient(135deg, #e4e6ea 0%, #c9d0d8 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

.audio-play-icon,
.audio-pause-icon {
    color: #ffffff;
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.audio-pause-icon {
    margin-left: 0;
}

.audio-play-btn:hover:not(.disabled) .audio-play-icon,
.audio-play-btn:hover:not(.disabled) .audio-pause-icon {
    transform: scale(1.1);
}

/* SVG icon styles - icons are now SVG instead of font icons */
.audio-player-modern svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.audio-ripple {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(62, 151, 255, 0.15);
    z-index: 1;
    border: 2px solid rgba(62, 151, 255, 0.3);
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.3s ease;
}

/* Ripple animation only when audio is playing */
.audio-ripple.audio-playing {
    animation: ripple 2s infinite;
    opacity: 0.8;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.audio-play-btn.disabled ~ .audio-ripple {
    display: none;
}

.audio-info {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.audio-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.audio-title i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.audio-stats {
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-stats .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Playing state */
.audio-play-btn.playing .audio-play-icon {
    display: none !important;
}

.audio-play-btn.playing .audio-pause-icon {
    display: inline-block !important;
}

.audio-play-btn:not(.playing) .audio-pause-icon {
    display: none !important;
}

.audio-play-btn:not(.playing) .audio-play-icon {
    display: inline-block !important;
}

/* SVG icon styles */
.audio-player-modern svg {
    display: inline-block;
    vertical-align: middle;
}

.audio-title svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .audio-player-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .audio-player-circle {
        width: 100px;
        height: 100px;
    }

    .audio-play-btn {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .audio-ripple {
        width: 100px;
        height: 100px;
    }

    .audio-play-icon,
    .audio-pause-icon {
        width: 40px;
        height: 40px;
    }
}

/* Speaking Section Layout */
.speaking-section-card {
    background: #ffffff;
    border: 1px solid #e4e6ea;
    border-radius: 18px;
    padding: 2rem 2.25rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.speaking-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3E97FF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.speaking-step-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #EEF6FF;
    color: #3E97FF;
    font-size: 0.9rem;
    font-weight: 700;
}

.speaking-section-label-text {
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    color: #3E97FF;
}

.speaking-section-label--success {
    color: #1BC5BD;
}

.speaking-section-label--success span {
    background: #E6FFFB;
    color: #1BC5BD;
}

.speaking-section-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.speaking-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818496;
}

.speaking-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #181c32;
}

.speaking-section-desc {
    font-size: 0.95rem;
    color: #4b5675;
}

.speaking-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3E97FF;
    background: #EEF6FF;
    white-space: nowrap;
}

.speaking-pill--light {
    background: #F1F7FF;
}

.speaking-pill--ghost {
    background: rgba(62, 151, 255, 0.15);
}

.speaking-pill--primary {
    background: #EAF7FF;
    color: #009EF7;
}

.speaking-audio-control {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.speaking-audio-button {
    flex: 0 0 auto;
}

.speaking-audio-ring {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaking-audio-ring .audio-ripple {
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%);
}

.speaking-audio-card .audio-play-btn {
    width: 110px;
    height: 110px;
    border-width: 0;
    background: linear-gradient(135deg, #3E97FF 0%, #009EF7 100%);
    box-shadow: 0 12px 30px rgba(62, 151, 255, 0.35);
}

.speaking-audio-card .audio-play-btn.disabled {
    background: #E4E6EA;
    color: #A1A5B7;
    box-shadow: none;
}

.speaking-audio-details {
    flex: 1;
    min-width: 220px;
}

.speaking-audio-action {
    font-size: 1.1rem;
    font-weight: 700;
    color: #181c32;
}

.speaking-audio-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.speaking-note {
    font-size: 0.85rem;
    color: #7E8299;
}

.speaking-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.speaking-checklist li {
    position: relative;
    padding-left: 1.5rem;
    color: #4b5675;
    font-size: 0.95rem;
}

.speaking-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #3E97FF;
}

.speaking-checklist--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.speaking-checklist--inline li {
    flex: 1 1 200px;
}

.speaking-record-body {
    flex: 1;
}

.speaking-text-card {
    background: linear-gradient(135deg, #F8FBFF 0%, #FFFFFF 100%);
}

.speaking-text-content {
    animation: fadeInSlideDown 0.5s ease-out;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #009ef7;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 158, 247, 0.15);
    margin-bottom: 1.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(0);
    opacity: 1;
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.speaking-text-stem {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #181c32 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.01em;
    margin: 0;
}

.speaking-text-content.text-visible {
    animation: fadeInSlideDown 0.5s ease-out, gentlePulse 2s ease-in-out 0.5s 2;
    border-left-width: 5px;
    box-shadow: 0 4px 12px rgba(0, 158, 247, 0.25);
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 158, 247, 0.25);
    }
    50% {
        box-shadow: 0 6px 16px rgba(0, 158, 247, 0.35);
    }
}

.speaking-text-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #181c32;
    margin: 0;
}

.speaking-text-instructions {
    font-size: 0.95rem;
    color: #5c6078;
    margin: 0;
}

.speaking-prep-card {
    border: 1px dashed #cfd6e6;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    background: #F6F9FF;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.speaking-prep-card.is-complete {
    opacity: 0.75;
}

.speaking-prep-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.speaking-prep-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3E97FF;
    font-variant-numeric: tabular-nums;
}

.speaking-prep-text {
    font-size: 0.95rem;
    color: #4b5675;
    margin: 0;
}

/* Modern Recording Section Styles */
.recording-container-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e4e6ea;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 280px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.recording-container-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #50CD89 0%, #3E97FF 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recording-container-modern:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #d1d3e0;
}

.recording-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 1.5rem;
}

.recording-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.recording-state-icon svg {
    display: block;
}

.recording-waiting-icon svg {
    animation: gentle-pulse 2s ease-in-out infinite;
}

.recording-active-icon {
    position: relative;
    z-index: 2;
}

.recording-saved-icon svg {
    animation: success-bounce 0.6s ease-out;
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes success-bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.recording-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.recording-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #181c32;
    margin: 0;
    line-height: 1.4;
}

.recording-state-description {
    font-size: 0.95rem;
    color: #5c6078;
    margin: 0;
    line-height: 1.6;
    max-width: 400px;
}

/* Recording Active State with Pulse Animation */
.recording-active {
    gap: 1rem;
}

.recording-pulse-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recording-pulse-container--compact {
    width: 64px;
    height: 64px;
}

.recording-pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid #3E97FF;
    border-radius: 50%;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.recording-pulse-ring:nth-child(1) {
    animation-delay: 0s;
}

.recording-pulse-ring:nth-child(2) {
    animation-delay: 0.66s;
}

.recording-pulse-ring:nth-child(3) {
    animation-delay: 1.33s;
}

.recording-pulse-container--compact .recording-pulse-ring {
    width: 64px;
    height: 64px;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.recording-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #3E97FF 0%, #009EF7 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(62, 151, 255, 0.3);
    animation: badge-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(62, 151, 255, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(62, 151, 255, 0.45);
    }
}

.recording-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-block;
    margin-right: 10px;
    animation: badge-dot 1.5s ease-in-out infinite;
}

@keyframes badge-dot {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.recording-led {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #00B2FF 0%, #0A6BEA 60%, #0A6BEA 100%);
    box-shadow: 0 0 12px rgba(62, 151, 255, 0.6);
    display: inline-block;
}

.recording-badge svg {
    display: inline-block;
    vertical-align: middle;
}

/* Saved Recording State */
.recording-saved {
    gap: 1.5rem;
}

.recording-audio-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.recording-audio-player {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e4e6ea;
}

.recording-audio-player::-webkit-media-controls-panel {
    background-color: #ffffff;
    border-radius: 8px;
}

.recording-saved-text {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #50CD89;
    font-weight: 600;
    margin: 0;
}

.recording-saved-text svg {
    display: inline-block;
    vertical-align: middle;
}

/* Recording Timer Card */
.recording-timer-card {
    background: linear-gradient(135deg, #E4E6EA 0%, #C9D2DD 100%);
    border: 2px solid #3E97FF;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(62, 151, 255, 0.2);
    animation: timer-glow 2s ease-in-out infinite;
}

@keyframes timer-glow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(62, 151, 255, 0.2);
    }
    50% {
        box-shadow: 0 12px 32px rgba(62, 151, 255, 0.35);
    }
}

.recording-timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.recording-timer-icon {
    width: 56px;
    height: 56px;
    background: rgba(62, 151, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.recording-timer-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recording-timer-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3E97FF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recording-timer-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3E97FF;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recording-container-modern {
        padding: 2rem 1.5rem;
        min-height: 240px;
    }

    .recording-state-title {
        font-size: 1.1rem;
    }

    .recording-state-description {
        font-size: 0.875rem;
    }

    .recording-timer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .recording-timer-value {
        font-size: 1.75rem;
    }

    .recording-pulse-container {
        width: 64px;
        height: 64px;
    }

    .recording-pulse-ring {
        width: 64px;
        height: 64px;
    }

    .recording-state-icon.recording-waiting-icon svg,
    .recording-state-icon.recording-saved-icon svg {
        width: 48px;
        height: 48px;
    }

    .recording-state-icon.recording-active-icon svg {
        width: 40px;
        height: 40px;
    }
}

/* Notes Drawer - Side Drawer Style */
#kt_drawer_notes {
    z-index: 3000 !important;
    width: 420px !important;
    max-width: 90vw !important;
    background: #ffffff !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
}

#kt_drawer_notes .drawer-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

#kt_drawer_notes .drawer-header {
    padding: 1.5rem 2rem !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-bottom: 2px solid #e4e6ea !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 75px !important;
}

#kt_drawer_notes .drawer-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #181c32 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

#kt_drawer_notes .drawer-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #3E97FF 0%, #009EF7 100%);
    border-radius: 2px;
}

#kt_drawer_notes .drawer-body {
    flex: 1 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
}

#kt_drawer_notes .drawer-body::-webkit-scrollbar {
    width: 8px;
}

#kt_drawer_notes .drawer-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#kt_drawer_notes .drawer-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#kt_drawer_notes .drawer-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#kt_drawer_notes .form {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#kt_drawer_notes .fv-row {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.5rem !important;
    flex: 1 !important;
    min-height: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#kt_drawer_notes .fv-row label {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #181c32 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

#kt_drawer_notes .fv-row label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: #3E97FF;
    border-radius: 2px;
}

#kt_drawer_notes_textarea {
    width: 100% !important;
    flex: 1 !important;
    min-height: 0 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    padding: 1.25rem !important;
    border: 2px solid #e4e6ea !important;
    border-radius: 12px !important;
    resize: none !important;
    background: #ffffff !important;
    color: #181c32 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

#kt_drawer_notes_textarea:focus {
    border-color: #3E97FF !important;
    box-shadow: 0 0 0 0.25rem rgba(62, 151, 255, 0.15), 0 4px 12px rgba(62, 151, 255, 0.1) !important;
    outline: none !important;
    background: #ffffff !important;
}

#kt_drawer_notes_textarea::placeholder {
    color: #a1a5b7 !important;
    font-style: italic !important;
}

#kt_drawer_notes .drawer-toolbar {
    margin-left: auto !important;
}

#kt_drawer_notes_close {
    padding: 0.5rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#kt_drawer_notes_close:hover {
    background-color: #f1f7ff !important;
    color: #3E97FF !important;
    transform: rotate(90deg) !important;
}

#kt_drawer_notes .border-top {
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-top: 2px solid #e4e6ea !important;
    padding: 1.5rem 2rem !important;
}

#kt_drawer_notes_cancel {
    padding: 0.75rem 1.75rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    border: 2px solid #e4e6ea !important;
    background: #ffffff !important;
    color: #5e6278 !important;
}

#kt_drawer_notes_cancel:hover {
    background-color: #f1f7ff !important;
    border-color: #3E97FF !important;
    color: #3E97FF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(62, 151, 255, 0.15) !important;
}

#kt_drawer_notes_cancel i {
    font-size: 1.25rem !important;
}

/* Drawer overlay z-index */
.drawer-overlay,
.drawer-backdrop {
    z-index: 2999 !important;
}

/* Floating action buttons container - ensure proper z-index (below drawer) */
.position-fixed.bottom-0.end-0 {
    z-index: 2500 !important;
}

/* Ensure drawer buttons don't overlap with other elements */
.position-fixed.bottom-0.end-0 .btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.position-fixed.bottom-0.end-0 .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Other drawers (glossary, dictionary) - keep side drawer style */
#kt_drawer_glossary,
#kt_drawer_dictionary {
    z-index: 3000 !important;
}

#kt_drawer_glossary .drawer-body,
#kt_drawer_dictionary .drawer-body {
    padding-bottom: 120px !important;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Test content should be below drawer */
.test-container,
#testContent {
    position: relative;
    z-index: 1;
}

/* Mobile adjustments for drawer */
@media (max-width: 768px) {
    #kt_drawer_notes {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #kt_drawer_notes .drawer-header {
        padding: 1rem 1.5rem !important;
    }
    
    #kt_drawer_notes .drawer-title {
        font-size: 1.25rem !important;
    }
    
    #kt_drawer_notes_textarea {
        min-height: 300px !important;
        max-height: calc(100vh - 200px) !important;
        font-size: 0.95rem !important;
        padding: 0.75rem !important;
    }
    
    .position-fixed.bottom-0.end-0 {
        bottom: 1rem !important;
        right: 1rem !important;
        z-index: 2500 !important;
    }
    
    .position-fixed.bottom-0.end-0 .btn {
        width: 56px;
        height: 56px;
        padding: 0;
    }
    
    #kt_drawer_notes_cancel {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}