/* Enhanced input field fixes */


.ays-vendor-quiz-form-container input[type="text"],


.ays-vendor-quiz-form-container input[type="number"],


.ays-vendor-quiz-form-container select,


.ays-vendor-quiz-form-container textarea {


    width: 100% !important;


    max-width: 100% !important;


    box-sizing: border-box !important;


    border: 1px solid #d1d5db !important;


    border-radius: 6px !important;


    padding: 10px 12px !important;


    font-size: 14px !important;


    line-height: 1.4 !important;


    transition: border-color 0.2s ease !important;


}





.ays-vendor-quiz-form-container input[type="text"]:focus,


.ays-vendor-quiz-form-container input[type="number"]:focus,


.ays-vendor-quiz-form-container select:focus,


.ays-vendor-quiz-form-container textarea:focus {


    outline: none !important;


    border-color: #3b82f6 !important;


    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;


}





/* Question and answer specific fixes */


.ays-q-title {


    flex: 1 1 auto !important;


    min-width: 520px !important;


    max-width: none !important;


    font-size: 16px !important;


    padding: 14px 16px !important;


}





.ays-ans-text {


    flex: 1 1 auto !important;


    min-width: 520px !important;


    max-width: none !important;


    font-size: 15px !important;


    padding: 12px 14px !important;


}





.ays-q-type {


    flex: 0 0 220px !important;


    width: 220px !important;


    min-width: 220px !important;


    max-width: 220px !important;


    font-size: 14px !important;


    padding: 14px 12px !important;


}





.ays-ans-points {


    flex: 0 0 90px !important;


    width: 90px !important;


    min-width: 90px !important;


    max-width: 90px !important;


    font-size: 14px !important;


    padding: 12px 8px !important;


}





.ays-answer-row {


    align-items: stretch !important;


    gap: 15px !important;


}





.ays-answer-main {


    align-items: center !important;


    gap: 12px !important;


    flex: 1 !important;


}





.ays-question-inputs {


    gap: 20px !important;


    align-items: center !important;


}





/* Responsive adjustments */


@media (max-width: 768px) {


    .ays-quiz-type-grid {


        grid-template-columns: 1fr;


    }





    .ays-q-title {


        min-width: 300px !important;


        max-width: 100% !important;


        font-size: 15px !important;


    }


    


    .ays-ans-text {


        min-width: 250px !important;


        max-width: 100% !important;


        font-size: 14px !important;


    }


    


    .ays-q-type {


        flex: 0 0 180px !important;


        width: 180px !important;


        min-width: 180px !important;


        max-width: 180px !important;


    }


    


    .ays-ans-points {


        flex: 0 0 80px !important;


        width: 80px !important;


        min-width: 80px !important;


        max-width: 80px !important;


    }


    


    .ays-question-inputs {


        flex-direction: column !important;


        gap: 15px !important;


        align-items: stretch !important;


    }


    


    .ays-answer-main {


        flex-wrap: wrap !important;


        gap: 10px !important;


    }


    


    .ays-answer-row {


        flex-direction: column !important;


        align-items: stretch !important;


        gap: 10px !important;


    }


}





@media (max-width: 480px) {


    .ays-q-title {


        min-width: 250px !important;


        font-size: 14px !important;


        padding: 12px 14px !important;


    }


    


    .ays-ans-text {


        min-width: 200px !important;


        font-size: 13px !important;


        padding: 10px 12px !important;


    }


}





/* AYS Quiz Vendor Plugin Styles */





.ays-vendor-quiz-form-container,


.ays-vendor-dashboard {


    max-width: 1200px;


    margin: 0 auto;


    padding: 20px;


    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;


}





.ays-form-header {


    text-align: center;


    margin-bottom: 40px;


}





.ays-form-header h2 {


    color: #1f2937;


    font-size: 32px;


    margin-bottom: 10px;


}





.ays-form-header p {


    color: #6b7280;


    font-size: 16px;


}





.ays-form-section {


    background: white;


    border-radius: 12px;


    padding: 30px;


    margin-bottom: 30px;


    border: 1px solid #e5e7eb;


    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);


}





.ays-form-section h3 {


    color: #1f2937;


    font-size: 20px;


    margin-bottom: 20px;


    padding-bottom: 10px;


    border-bottom: 2px solid #f3f4f6;


}





.ays-quiz-type-grid {


    display: grid;


    grid-template-columns: repeat(2, minmax(0, 1fr));


    gap: 16px;


}





.ays-quiz-type-option {


    border: 1px solid #e5e7eb;


    border-radius: 12px;


    padding: 18px 20px;


    display: flex;


    align-items: center;


    gap: 16px;


    background: #f9fafb;


    cursor: pointer;


    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;


    position: relative;


    min-height: 88px;


}





.ays-quiz-type-option.is-selected {


    border-color: #111827;


    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.15);


    background: #ffffff;


    transform: translateY(-2px);


}





.ays-quiz-type-option.is-dimmed {


    opacity: 0.45;


    filter: grayscale(0.4);


}





.ays-quiz-type-input {


    position: absolute;


    opacity: 0;


    pointer-events: none;


}





.ays-quiz-type-icon {


    width: 48px;


    height: 48px;


    border-radius: 14px;


    background: #F6F5F8;


    color: #ffffff;


    display: flex;


    align-items: center;


    justify-content: center;


    font-size: 22px;


    flex: 0 0 48px;


}





.ays-quiz-type-text {


    display: flex;


    flex-direction: column;


    gap: 4px;


}





.ays-quiz-type-title {


    font-size: 16px;


    font-weight: 700;


    color: #111827;


}





.ays-quiz-type-desc {


    font-size: 13px;


    color: #6b7280;


}





.ays-quiz-template--opinion-poll .ays-ans-correct,


.ays-quiz-template--opinion-poll .ays-ans-points,


.ays-quiz-template--trivia .ays-ans-points {


    display: none !important;


}





.ays-form-grid {


    display: grid;


    grid-template-columns: 1fr 1fr;


    gap: 20px;


    margin-bottom: 20px;


}





.ays-form-field {


    margin-bottom: 20px;


}





.ays-form-field label {


    display: block;


    margin-bottom: 8px;


    font-weight: 600;


    color: #374151;


    font-size: 14px;


}





.ays-input,


.ays-textarea {


    width: 100%;


    padding: 12px 16px;


    border: 1px solid #d1d5db;


    border-radius: 8px;


    font-size: 14px;


    box-sizing: border-box;


    transition: border-color 0.2s;


}





.ays-input:focus,


.ays-textarea:focus {


    outline: none;


    border-color: #3b82f6;


    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);


}





.ays-input[disabled],


.ays-input[aria-disabled="true"] {


    background: #f3f4f6;


    color: #6b7280;


    cursor: not-allowed;


    opacity: 1;


}





.ays-textarea {


    resize: vertical;


    min-height: 100px;


}





.ays-image-upload {


    position: relative;


}





.ays-image-upload .ays-cover-box {


    width: 100%;


    height: 200px;


    border: 2px dashed #d1d5db;


    border-radius: 8px;


    display: flex;


    flex-direction: column;


    align-items: center;


    justify-content: center;


    cursor: pointer;


    transition: all 0.2s;


    position: relative;


}





.ays-image-upload .ays-cover-box:hover {


    border-color: #3b82f6;


    background: #f9fafb;


}





.ays-image-upload .ays-cover-box.has-image {


    border-style: solid;


    height: auto;


    min-height: 200px;


}





.ays-image-upload .ays-cover-box img {


    max-width: 100%;


    max-height: 300px;


    border-radius: 6px;


}





.ays-image-upload-box {


    width: 100%;


    min-height: 130px;


    border: 2px dashed #d1d5db;


    border-radius: 8px;


    display: flex;


    flex-direction: column;


    align-items: center;


    justify-content: center;


    cursor: pointer;


    transition: all 0.2s;


    position: relative;


    background: #fff;


    text-align: center;


    padding: 2px;


}





.ays-image-upload-box .upload-placeholder {


    width: 100%;


    height: 100%;


    display: flex;


    flex-direction: column;


    align-items: center;


    justify-content: center;


}





.ays-image-upload-box:hover {


    border-color: #3b82f6;


    background: #f9fafb;


}





.ays-image-upload-box.has-image {


    border-style: solid;


    min-height: 160px;


}





.ays-image-upload-box .upload-icon {


    font-size: 22px;


    margin-bottom: 4px;


}





.ays-image-upload-box .upload-placeholder p {


    margin: 0;


    font-size: 13px;


    color: #6b7280;


}





.ays-image-upload-box .ays-image-preview {


    width: 100%;


    height: 100%;


    font-size: 0;


    line-height: 0;


    color: transparent;


    overflow: hidden;


}





.ays-image-upload-box .ays-image-preview img {


    width: 100%;


    height: 100%;


    object-fit: cover;


    border-radius: 6px;


    display: block;


}





.ays-inline-image-upload {


    max-width: 360px;


}





.ays-inline-answer-upload {


    max-width: 180px;


}





.ays-inline-answer-upload .ays-image-upload-box {


    min-height: 90px;


    height: 90px;


    overflow: hidden;


}





.ays-inline-answer-upload .ays-image-upload-box.has-image {


    min-height: 90px;


    height: 90px;


}





.ays-inline-answer-upload .ays-image-preview img {


    width: 100%;


    height: 100%;


    object-fit: cover;


}





/* Front-end answer image sizing */


.ays-vendor-answer-image {


    max-width: 100% !important;


    overflow: hidden !important;


    border-radius: 6px;


}





.ays-vendor-answer-image img {


    width: 100% !important;


    height: auto !important;


    object-fit: contain !important;


    max-height: 600px !important;


    display: block;


    border-radius: 6px;


}





.ays-inline-answer-image {


    width: 100% !important;


    height: auto !important;


    object-fit: contain !important;


    max-height: 600px !important;


    display: block;


    margin-top: 6px;


    border-radius: 6px;


}





.ays-inline-question-upload {


    max-width: 260px;


}





.ays-inline-question-upload .ays-image-upload-box {


    min-height: 110px;


    height: 110px;


    overflow: hidden;


}





.ays-inline-question-upload .ays-image-preview img {


    width: 100%;


    height: 100%;


    object-fit: cover;


}





.ays-inline-remove-image {


    position: absolute;


    top: 5px;


    right: 5px;


    width: 12px;


    height: 12px;


    border-radius: 0;


    background: transparent;


    color: #111;


    border: none;


    display: none;


    align-items: center;


    justify-content: center;


    font-size: 18px;


    line-height: 1;


    cursor: pointer;


}





.ays-inline-remove-image:hover {


    background: rgba(0, 0, 0, 0.08);


    border-radius: 4px;


}





.ays-remove-image {


    position: absolute;


    top: 10px;


    right: 10px;


    background: #ef4444;


    color: white;


    border: none;


    border-radius: 50%;


    width: 30px;


    height: 30px;


    cursor: pointer;


    font-size: 16px;


    display: flex;


    align-items: center;


    justify-content: center;


}





/* Question Styles */


.ays-question-item {


    background: #f9fafb;


    border: 1px solid #e5e7eb;


    border-radius: 8px;


    padding: 20px;


    margin-bottom: 20px;


    position: relative;


}





.ays-question-header {


    display: flex;


    align-items: center;


    gap: 15px;


    margin-bottom: 20px;


}





.ays-question-number {


    background: #3b82f6;


    color: white;


    width: 40px;


    height: 40px;


    border-radius: 50%;


    display: flex;


    align-items: center;


    justify-content: center;


    font-weight: bold;


    flex-shrink: 0;


}


.ays-question-drag-handle {
    cursor: grab;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 18px;
    padding: 0 6px;
    margin-left: -6px;
    margin-right: 6px;
    align-self: center;
}


.ays-question-drag-handle:active {
    cursor: grabbing;
}


.ays-question-item.ays-question-dragging {
    opacity: 0.6;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}


.ays-question-item.ays-question-dragover {
    border-color: #3b82f6;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.18);
}





.ays-question-inputs {


    flex: 1;


    display: flex;


    gap: 20px;


}





.ays-q-title {


    flex: 1 1 auto !important;


    padding: 14px 16px !important;


    border: 1px solid #d1d5db;


    border-radius: 6px;


    font-size: 16px !important;


    width: auto !important;


    min-width: 520px !important;


    max-width: none !important;


    box-sizing: border-box !important;


}





.ays-q-type {


    flex: 0 0 220px !important;


    width: 220px !important;


    min-width: 220px !important;


    max-width: 220px !important;


    padding: 14px 12px !important;


    border: 1px solid #d1d5db;


    border-radius: 6px;


    font-size: 14px !important;


}





.ays-btn-remove-q {


    background: #ef4444;


    color: white;


    border: none;


    border-radius: 50%;


    width: 30px;


    height: 30px;


    cursor: pointer;


    font-size: 16px;


    display: flex;


    align-items: center;


    justify-content: center;


}





.ays-answers-section {


    margin-top: 15px;


}





.ays-answers-title {


    font-weight: 600;


    color: #374151;


    margin-bottom: 10px;


    font-size: 14px;


}





.ays-answer-row {


    display: flex;


    align-items: center;


    gap: 15px;


    margin-bottom: 10px;


    padding: 10px;


    background: white;


    border-radius: 6px;


    border: 1px solid #e5e7eb;


}





.ays-answer-main {


    flex: 1;


    display: flex;


    align-items: center;


    gap: 10px;


}





.ays-ans-text {


    flex: 1 1 auto !important;


    padding: 12px 14px !important;


    border: 1px solid #d1d5db;


    border-radius: 4px;


    font-size: 15px !important;


    width: auto !important;


    min-width: 520px !important;


    max-width: none !important;


    box-sizing: border-box !important;


}





.ays-ans-points {


    flex: 0 0 90px !important;


    width: 90px !important;


    min-width: 90px !important;


    max-width: 90px !important;


    padding: 12px 8px !important;


    border: 1px solid #d1d5db;


    border-radius: 4px;


    font-size: 14px !important;


}





.ays-ans-correct {


    display: flex;


    align-items: center;


    gap: 5px;


    font-size: 14px;


    color: #374151;


}





.ays-ans-remove {


    background: transparent;


    color: #111;


    border: none;


    border-radius: 4px;


    width: 24px;


    height: 24px;


    cursor: pointer;


    font-size: 18px;


    line-height: 1;


    display: inline-flex;


    align-items: center;


    justify-content: center;


    margin-left: 6px;


}





.ays-ans-remove:hover {


    background: rgba(0, 0, 0, 0.08);


}





.ays-answer-actions {


    display: flex;


    align-items: center;


    gap: 6px;


}





.ays-btn-add-ans {


    background: #10b981;


    color: white;


    border: none;


    border-radius: 6px;


    padding: 10px 16px;


    cursor: pointer;


    font-size: 14px;


    margin-top: 10px;


}





.ays-add-q-btn {


    background: #3b82f6;


    color: white;


    border: none;


    border-radius: 8px;


    padding: 12px 24px;


    cursor: pointer;


    font-size: 16px;


    font-weight: 600;


    margin-top: 20px;


}





/* Conditional Logic Styles */


.ays-logic-rule {


    display: flex;


    align-items: center;


    gap: 10px;


    padding: 15px;


    background: #f3f4f6;


    border-radius: 8px;


    margin-bottom: 10px;


    border: 1px solid #e5e7eb;


}





.ays-logic-rule select {


    padding: 8px 12px;


    border: 1px solid #d1d5db;


    border-radius: 4px;


    font-size: 14px;


}





.ays-remove-rule {


    padding-top: 25px;


}





.ays-rule-help {


    background: #eff6ff;


    border: 1px solid #bfdbfe;


    border-radius: 6px;


    padding: 15px;


    margin-bottom: 20px;


}





.ays-rule-help ul {


    margin: 10px 0 0 20px;


    color: #6b7280;


    font-size: 14px;


}





/* Settings Styles */


.ays-settings-grid {


    display: grid;


    grid-template-columns: 1fr 1fr;


    gap: 20px;


    margin-bottom: 20px;


}





.ays-setting-item {


    display: flex;


    flex-direction: column;


}





.ays-checkbox-group {


    display: flex;


    flex-direction: column;


    gap: 10px;


}





.ays-checkbox-label {


    display: flex;


    align-items: center;


    gap: 8px;


    font-size: 14px;


    color: #374151;


    cursor: pointer;


}





/* Button Styles */


.ays-btn-submit {


    background: #3b82f6;


    color: white;


    border: none;


    border-radius: 8px;


    padding: 12px 24px;


    cursor: pointer;


    font-size: 16px;


    font-weight: 600;


    text-decoration: none;


    display: inline-block;


    transition: background 0.2s;


}





.ays-btn-submit:hover {


    background: #2563eb;


}





.ays-btn-secondary {


    background: #6b7280;


    color: white;


    border: none;


    border-radius: 6px;


    padding: 10px 16px;


    cursor: pointer;


    font-size: 14px;


    text-decoration: none;


    display: inline-block;


    transition: background 0.2s;


}





.ays-btn-secondary:hover {


    background: #4b5563;


}





.ays-btn-cancel {


    background: #6b7280;


    color: white;


    border: none;


    border-radius: 8px;


    padding: 12px 24px;


    cursor: pointer;


    font-size: 16px;


    font-weight: 600;


    text-decoration: none;


    display: inline-block;


    transition: background 0.2s;


}





.ays-btn-cancel:hover {


    background: #4b5563;


}





.ays-form-actions {


    display: flex;


    gap: 15px;


    justify-content: flex-end;


    margin-top: 30px;


    padding-top: 20px;


    border-top: 1px solid #e5e7eb;


}





/* Dashboard Styles */


.dashboard-header {


    display: flex;


    justify-content: space-between;


    align-items: center;


    margin-bottom: 30px;


}





.dashboard-header h2 {


    color: #1f2937;


    font-size: 32px;


}





.quiz-filters {


    background: white;


    padding: 20px;


    border-radius: 8px;


    margin-bottom: 30px;


    border: 1px solid #e5e7eb;


}





.quiz-filters form {


    display: flex;


    gap: 15px;


    align-items: center;


}





.quiz-filters input[type="text"],


.quiz-filters select {


    padding: 10px 12px;


    border: 1px solid #d1d5db;


    border-radius: 6px;


    font-size: 14px;


}





.quiz-filters input[type="text"] {


    flex: 1;


    max-width: 300px;


}





.ays-empty-state {


    text-align: center;


    padding: 60px 20px;


    background: white;


    border-radius: 12px;


    border: 1px solid #e5e7eb;


}





.ays-empty-state h3 {


    color: #6b7280;


    margin-bottom: 10px;


}





.ays-empty-state p {


    color: #9ca3af;


    margin-bottom: 20px;


}





.quizzes-grid {


    display: grid;


    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));


    gap: 20px;


}





.quiz-card {


    background: white;


    border-radius: 12px;


    overflow: hidden;


    border: 1px solid #e5e7eb;


    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);


    transition: transform 0.2s, box-shadow 0.2s;


}





.quiz-card:hover {


    transform: translateY(-2px);


    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);


}





.quiz-image {


    height: 200px;


    background: #f3f4f6;


    display: flex;


    align-items: center;


    justify-content: center;


    overflow: hidden;


}





.quiz-image img {


    width: 100%;


    height: 100%;


    object-fit: cover;


}





.quiz-image .placeholder {


    font-size: 48px;


    color: #9ca3af;


}





.quiz-info {


    padding: 20px;


}





.quiz-info h3 {


    color: #1f2937;


    font-size: 18px;


    margin-bottom: 8px;


}





.quiz-description {


    color: #6b7280;


    font-size: 14px;


    margin-bottom: 15px;


    line-height: 1.5;


}





.quiz-meta {


    display: flex;


    flex-wrap: wrap;


    gap: 15px;


    font-size: 12px;


    color: #6b7280;


}





.quiz-actions {


    padding: 15px 20px;


    background: #f9fafb;


    border-top: 1px solid #e5e7eb;


    display: flex;


    gap: 8px;


    flex-wrap: wrap;


}





.btn-edit,


.btn-analytics,


.btn-duplicate,


.btn-delete {


    padding: 6px 12px;


    border: none;


    border-radius: 4px;


    font-size: 12px;


    cursor: pointer;


    text-decoration: none;


    display: inline-block;


    transition: background 0.2s;


}





.btn-edit {


    background: #3b82f6;


    color: white;


}





.btn-edit:hover {


    background: #2563eb;


}





.btn-analytics {


    background: #10b981;


    color: white;


}





.btn-analytics:hover {


    background: #059669;


}





.btn-duplicate {


    background: #f59e0b;


    color: white;


}





.btn-duplicate:hover {


    background: #d97706;


}





.btn-delete {


    background: #ef4444;


    color: white;


}





.btn-delete:hover {


    background: #dc2626;


}





/* Analytics Dashboard Styles */


.stats-overview {


    display: grid;


    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));


    gap: 20px;


    margin-bottom: 30px;


}





.stat-box {


    background: white;


    padding: 25px;


    border-radius: 12px;


    border: 1px solid #e5e7eb;


    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);


    display: flex;


    align-items: center;


    gap: 20px;


}





.stat-icon {


    font-size: 48px;


    width: 80px;


    height: 80px;


    display: flex;


    align-items: center;


    justify-content: center;


    background: #f3f4f6;


    border-radius: 12px;


    flex-shrink: 0;


}





.stat-content h3 {


    color: #1f2937;


    font-size: 32px;


    font-weight: bold;


    margin: 0 0 5px 0;


}





.stat-content p {


    color: #6b7280;


    font-size: 14px;


    margin: 0;


}





.recent-submissions {


    background: white;


    padding: 30px;


    border-radius: 12px;


    border: 1px solid #e5e7eb;


    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);


}





.recent-submissions h3 {


    color: #1f2937;


    font-size: 20px;


    margin-bottom: 20px;


    padding-bottom: 10px;


    border-bottom: 2px solid #f3f4f6;


}





.data-table {


    width: 100%;


    border-collapse: collapse;


    margin-top: 15px;


}





.data-table th,


.data-table td {


    padding: 12px 15px;


    text-align: left;


    border-bottom: 1px solid #e5e7eb;


}





.data-table th {


    background: #f9fafb;


    font-weight: 600;


    color: #374151;


    font-size: 14px;


}





.data-table td {


    color: #6b7280;


    font-size: 14px;


}





.ays-stats-loader {


    display: flex;


    align-items: center;


    justify-content: center;


    gap: 10px;


    color: #374151;


    font-size: 14px;


    min-height: 52px;


}





.ays-loader-dot {


    width: 12px;


    height: 12px;


    border-radius: 50%;


    background: #10b981;


    animation: ays-stats-pulse 0.9s ease-in-out infinite;


}





@keyframes ays-stats-pulse {


    0%, 100% {


        transform: scale(0.85);


        opacity: 0.55;


    }


    50% {


        transform: scale(1.2);


        opacity: 1;


    }


}





.ays-stats-page-loader {


    position: fixed;


    inset: 0;


    background: rgba(255, 255, 255, 0.82);


    z-index: 99999;


    align-items: center;


    justify-content: center;


}





.ays-stats-page-loader__content {


    display: flex;


    align-items: center;


    gap: 12px;


    padding: 14px 18px;


    border-radius: 10px;


    background: #ffffff;


    border: 1px solid #e5e7eb;


    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);


    color: #1f2937;


    font-weight: 600;


}





.data-table tr:hover {


    background: #f9fafb;


}





/* Leaderboard Styles */


.ays-leaderboard {


    max-width: 800px;


    margin: 0 auto;


    padding: 20px;


    text-align: center;


}





.ays-leaderboard h2 {


    color: #1f2937;


    font-size: 32px;


    margin-bottom: 10px;


}





.ays-leaderboard p {


    color: #6b7280;


    font-size: 16px;


    margin-bottom: 30px;


}





.leaderboard-table {


    background: white;


    border-radius: 12px;


    overflow: hidden;


    border: 1px solid #e5e7eb;


    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);


}





.leaderboard-header {


    display: grid;


    grid-template-columns: 80px 2fr 1fr 1fr 1fr;


    background: #f9fafb;


    padding: 20px;


    font-weight: 600;


    color: #374151;


    border-bottom: 2px solid #e5e7eb;


}





.leaderboard-row {


    display: grid;


    grid-template-columns: 80px 2fr 1fr 1fr 1fr;


    padding: 20px;


    border-bottom: 1px solid #e5e7eb;


    align-items: center;


    transition: background 0.2s;


}





.leaderboard-row:hover {


    background: #f9fafb;


}





.leaderboard-row.top-three {


    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);


    font-weight: 600;


}





.leaderboard-row:last-child {


    border-bottom: none;


}





.leaderboard-row .rank {


    font-size: 24px;


    font-weight: bold;


    color: #6b7280;


}





.leaderboard-row.top-three .rank {


    color: #d97706;


}





.leaderboard-row .name {


    font-weight: 500;


    color: #1f2937;


}





.leaderboard-row .attempts,


.leaderboard-row .best-score,


.leaderboard-row .points {


    color: #6b7280;


}





/* Responsive Design */


@media (max-width: 768px) {


    .ays-form-grid,


    .ays-settings-grid {


        grid-template-columns: 1fr;


    }


    


    .dashboard-header {


        flex-direction: column;


        gap: 20px;


        align-items: stretch;


    }


    


    .quiz-filters form {


        flex-direction: column;


        align-items: stretch;


    }


    


    .quiz-filters input[type="text"] {


        max-width: none;


    }


    


    .quizzes-grid {


        grid-template-columns: 1fr;


    }


    


    .ays-logic-rule {


        flex-wrap: wrap;


        gap: 8px;


    }


    


    .ays-logic-rule select {


        min-width: 100px;


    }


    


    .stats-overview {


        grid-template-columns: 1fr;


    }


    


    .stat-box {


        flex-direction: column;


        text-align: center;


    }


    


    .leaderboard-header,


    .leaderboard-row {


        grid-template-columns: 60px 2fr 1fr 1fr 1fr;


        padding: 15px 10px;


        font-size: 14px;


    }


    


    .data-table {


        font-size: 12px;


    }


    


    .data-table th,


    .data-table td {


        padding: 8px 10px;


    }


}