/**
 * IELTS Testing Platform - Public Styles
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

.ielts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ielts-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.ielts-col {
    flex: 1;
    padding: 0 15px;
}

.ielts-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.ielts-col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.ielts-col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.ielts-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ielts-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.ielts-text-center {
    text-align: center;
}

.ielts-text-muted {
    color: #6c757d;
}

.ielts-font-weight-bold {
    font-weight: 700;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ielts-btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.ielts-btn:focus,
.ielts-btn:hover {
    text-decoration: none;
}

.ielts-btn:disabled,
.ielts-btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ielts-btn-primary {
    color: #fff;
    background-color: #0073aa;
    border-color: #0073aa;
}

.ielts-btn-primary:hover,
.ielts-btn-primary:focus {
    color: #fff;
    background-color: #005a87;
    border-color: #004f75;
}

.ielts-btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.ielts-btn-secondary:hover,
.ielts-btn-secondary:focus {
    color: #fff;
    background-color: #545b62;
    border-color: #4e555b;
}

.ielts-btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.ielts-btn-success:hover,
.ielts-btn-success:focus {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34;
}

.ielts-btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.ielts-btn-warning:hover,
.ielts-btn-warning:focus {
    color: #212529;
    background-color: #e0a800;
    border-color: #d39e00;
}

.ielts-btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.ielts-btn-danger:hover,
.ielts-btn-danger:focus {
    color: #fff;
    background-color: #c82333;
    border-color: #bd2130;
}

.ielts-btn-outline {
    background-color: transparent;
    border: 2px solid #0073aa;
    color: #0073aa;
}

.ielts-btn-outline:hover,
.ielts-btn-outline:focus {
    background-color: #0073aa;
    color: #fff;
}

.ielts-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

.ielts-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
}

.ielts-btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    line-height: 1.5;
    border-radius: 0.5rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.ielts-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #e1e5e9;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.ielts-card-header {
    padding: 1.25rem;
    margin-bottom: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.ielts-card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.ielts-card-footer {
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.ielts-card-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
}

.ielts-card-text {
    margin-bottom: 1rem;
    color: #6c757d;
}

/* ==========================================================================
   Badges and Status
   ========================================================================== */

.ielts-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    text-transform: uppercase;
}

.ielts-badge-primary {
    color: #fff;
    background-color: #0073aa;
}

.ielts-badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

.ielts-badge-success {
    color: #fff;
    background-color: #28a745;
}

.ielts-badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.ielts-badge-danger {
    color: #fff;
    background-color: #dc3545;
}

.ielts-badge-demo {
    background-color: #28a745;
    color: white;
}

.ielts-badge-paid {
    background-color: #ffc107;
    color: #212529;
}

/* Status Badges */
.ielts-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    text-transform: uppercase;
}

.ielts-status-active {
    background-color: #d4edda;
    color: #155724;
}

.ielts-status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.ielts-status-draft {
    background-color: #fff3cd;
    color: #856404;
}

.ielts-status-in_progress {
    background-color: #fff3cd;
    color: #856404;
}

.ielts-status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.ielts-status-evaluated {
    background-color: #d4edda;
    color: #155724;
}

.ielts-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* ==========================================================================
   Alerts and Notices
   ========================================================================== */

.ielts-alert {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.ielts-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.ielts-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.ielts-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.ielts-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.ielts-notice {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.ielts-notice-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.ielts-notice-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.ielts-notice-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.ielts-form-group {
    margin-bottom: 1rem;
}

.ielts-form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.ielts-form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ielts-form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #0073aa;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 170, 0.25);
}

.ielts-form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ielts-form-select:focus {
    border-color: #0073aa;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 170, 0.25);
}

.ielts-form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
    margin-bottom: 0.125rem;
}

.ielts-form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    margin-left: -1.5rem;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 0.25rem;
}

.ielts-form-check-input:focus {
    border-color: #0073aa;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 170, 0.25);
}

.ielts-form-check-label {
    color: #333;
    cursor: pointer;
}

/* Dropdown Styling */
.ielts-filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    color: #000000; /* Black text color */
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.ielts-filter-select option {
    color: #000000; /* Black text for dropdown options */
    background-color: #ffffff; /* White background for options */
    padding: 8px 12px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ielts-filter-select {
        background-color: #2d3748;
        color: #ffffff;
        border-color: #4a5568;
    }
    
    .ielts-filter-select option {
        color: #ffffff;
        background-color: #2d3748;
    }
}

/* Search Input Styling Fixes */
.ielts-search-section {
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
}

.ielts-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ielts-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ielts-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.ielts-section-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    margin: 0;
}

.ielts-search-wrapper {
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
}

.ielts-search-form-enhanced {
    width: 100%;
}

.ielts-search-main {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-height: 56px;
}

.ielts-search-input-container {
    position: relative;
    flex: 1;
    z-index: 10;
}

.ielts-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    box-sizing: border-box;
}

.ielts-search-input-wrapper:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ielts-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    z-index: 2;
    pointer-events: none;
    width: 20px;
    height: 20px;
    transition: color 0.2s ease;
}

.ielts-search-input-enhanced {
    width: 100%;
    padding: 0 1.5rem 0 3.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1e293b;
    background: transparent;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    font-weight: 500;
    height: 100%;
    min-height: 52px;
    box-sizing: border-box;
}

.ielts-search-input-enhanced::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.ielts-search-clear {
    position: absolute;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    transform-origin: center;
    height: 32px;
    width: 32px;
}

.ielts-search-clear:hover {
    color: #64748b;
}

.ielts-search-clear svg {
    width: 1.25rem;
    height: 1.25rem;
}

.ielts-search-input-container {
    position: relative;
    z-index: 2; /* Create a stacking context */
    z-index: 2147483647 !important;
    isolation: isolate;
    transform: translateZ(0);
    will-change: transform;
    overflow: visible !important;
    contain: content;
}

.ielts-search-wrapper {
    position: relative;
    margin-bottom: 2rem;
    z-index: 1; /* Create a stacking context */
    z-index: auto !important;
    transform: none !important;
    will-change: auto;
    overflow: visible !important;
    contain: content;
}

.ielts-search-section * {
    /* Uncomment to debug layout issues */
    /* outline: 1px solid rgba(255,0,0,0.1) !important; */
}

.ielts-search-suggestions {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 0.25rem;
    animation: slideDown 0.2s ease-out;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    padding: 0.5rem 0;
}

.ielts-search-suggestions + * {
    margin-top: 20px;
}

.ielts-suggestions-header {
    padding: 0.5rem 1.25rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.ielts-suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ielts-suggestion-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    color: #334155;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 6px;
    margin: 0.125rem 0.5rem;
    width: calc(100% - 1rem);
}

.ielts-suggestion-item:hover {
    background: #f8fafc;
    color: #4f46e5;
}

.ielts-suggestion-item:active {
    background: #f1f5f9;
}

/* Focus state for better accessibility */
.ielts-suggestion-item:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Ensure the dropdown is visible above other content */
.ielts-search-suggestions {
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    margin-top: -1px !important; /* Fix 1px gap between input and dropdown */
    margin-top: 0;
}

.ielts-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    z-index: 2;
    pointer-events: none;
    width: 20px;
    height: 20px;
    transition: color 0.2s ease;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ielts-section-title {
        color: #f1f5f9;
    }
    
    .ielts-section-subtitle {
        color: #94a3b8;
    }
    
    .ielts-search-input-wrapper {
        background: #1e293b;
        border-color: #334155;
    }
    
    .ielts-search-input-enhanced {
        background: transparent;
        color: #f1f5f9;
    }
    
    .ielts-search-input-enhanced::placeholder {
        color: #94a3b8;
    }
    
    .ielts-search-icon {
        color: #94a3b8;
    }
    
    .ielts-search-clear {
        color: #94a3b8;
    }
    
    .ielts-search-clear:hover {
        background: #334155;
        color: #e2e8f0;
    }
    
    .ielts-search-suggestions {
        background: #1e293b;
        border-color: #334155;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    }
    
    .ielts-suggestion-item {
        color: #e2e8f0;
    }
    
    .ielts-suggestion-item:hover {
        background: #334155;
        color: #818cf8;
    }
    
    .ielts-suggestion-item:active {
        background: #2d3748;
    }
    
    .ielts-suggestions-header {
        color: #94a3b8;
    }
}

/* ==========================================================================
   Tables
   ========================================================================== */

.ielts-table {
    width: 100%;
    margin-bottom: 1rem;
    color: #333;
    border-collapse: collapse;
}

.ielts-table th,
.ielts-table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #e1e5e9;
    text-align: left;
}

.ielts-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #e1e5e9;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.ielts-table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.025);
}

.ielts-table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* ==========================================================================
   Modals
   ========================================================================== */

.ielts-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.ielts-modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.ielts-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    outline: 0;
    max-width: 500px;
    margin: 0 auto;
}

.ielts-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e1e5e9;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.ielts-modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}

.ielts-modal-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background: transparent;
    border: 0;
    border-radius: 0.375rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
}

.ielts-modal-close:hover {
    opacity: 0.75;
}

.ielts-modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.ielts-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #e1e5e9;
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.ielts-modal-footer > * {
    margin: 0.25rem;
}

/* ==========================================================================
   Progress Bars
   ========================================================================== */

.ielts-progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

.ielts-progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #0073aa;
    transition: width 0.6s ease;
}

.ielts-progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.ielts-progress-bar-animated {
    animation: ielts-progress-bar-stripes 1s linear infinite;
}

@keyframes ielts-progress-bar-stripes {
    0% {
        background-position-x: 1rem;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.ielts-d-none {
    display: none !important;
}

.ielts-d-block {
    display: block !important;
}

.ielts-d-flex {
    display: flex !important;
}

.ielts-justify-content-center {
    justify-content: center !important;
}

.ielts-justify-content-between {
    justify-content: space-between !important;
}

.ielts-align-items-center {
    align-items: center !important;
}

.ielts-text-center {
    text-align: center !important;
}

.ielts-text-left {
    text-align: left !important;
}

.ielts-text-right {
    text-align: right !important;
}

.ielts-mb-0 {
    margin-bottom: 0 !important;
}

.ielts-mb-1 {
    margin-bottom: 0.25rem !important;
}

.ielts-mb-2 {
    margin-bottom: 0.5rem !important;
}

.ielts-mb-3 {
    margin-bottom: 1rem !important;
}

.ielts-mb-4 {
    margin-bottom: 1.5rem !important;
}

.ielts-mb-5 {
    margin-bottom: 3rem !important;
}

.ielts-mt-0 {
    margin-top: 0 !important;
}

.ielts-mt-1 {
    margin-top: 0.25rem !important;
}

.ielts-mt-2 {
    margin-top: 0.5rem !important;
}

.ielts-mt-3 {
    margin-top: 1rem !important;
}

.ielts-mt-4 {
    margin-top: 1.5rem !important;
}

.ielts-mt-5 {
    margin-top: 3rem !important;
}

.ielts-p-0 {
    padding: 0 !important;
}

.ielts-p-1 {
    padding: 0.25rem !important;
}

.ielts-p-2 {
    padding: 0.5rem !important;
}

.ielts-p-3 {
    padding: 1rem !important;
}

.ielts-p-4 {
    padding: 1.5rem !important;
}

.ielts-p-5 {
    padding: 3rem !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 767.98px) {
    .ielts-container {
        padding: 0 15px;
    }
    
    .ielts-col-6,
    .ielts-col-4,
    .ielts-col-8 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .ielts-btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .ielts-title {
        font-size: 2rem;
    }
    
    .ielts-modal-dialog {
        margin: 1rem;
        min-height: calc(100% - 2rem);
    }
}

@media (max-width: 575.98px) {
    .ielts-title {
        font-size: 1.75rem;
    }
    
    .ielts-modal-dialog {
        margin: 0.5rem;
        min-height: calc(100% - 1rem);
    }
    
    .ielts-btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Congratulations Modal */
.ielts-congratulations-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.ielts-congratulations-content {
    background: white;
    max-width: 600px;
    margin: 40px auto;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.ielts-congratulations-header {
    text-align: center;
    margin-bottom: 25px;
}

.ielts-congratulations-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.ielts-congratulations-header h2 {
    color: #10b981;
    font-size: 28px;
    margin: 10px 0 5px;
}

.ielts-congratulations-header p {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.ielts-congratulations-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.ielts-stat-item {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    gap: 12px;
}

.ielts-stat-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ielts-stat-content {
    flex: 1;
}

.ielts-stat-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 3px;
}

.ielts-stat-value {
    font-weight: 600;
    color: #0f172a;
    font-size: 16px;
}

.ielts-congratulations-message {
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 6px;
    border-left: 4px solid #10b981;
}

.ielts-congratulations-message p {
    margin: 0;
    color: #0f766e;
    font-size: 15px;
}

.ielts-congratulations-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .ielts-congratulations-stats {
        grid-template-columns: 1fr;
    }
    
    .ielts-congratulations-actions {
        flex-direction: column;
    }
    
    .ielts-congratulations-actions .ielts-btn {
        width: 100%;
        margin: 5px 0;
    }
}