﻿
.ai-test-trigger-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    background: linear-gradient(135deg, #00928f 0%, #193763 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(0, 146, 143, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-test-trigger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 146, 143, 0.6);
    background: linear-gradient(135deg, #193763 0%, #00928f 100%);
    color: white;
}

.ai-test-trigger-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ai-test-trigger-btn:hover::before {
    width: 300px;
    height: 300px;
}

.ai-test-trigger-btn .ai-pulse-dot {
    display: inline-block;
}

.ai-test-trigger-btn .ai-new-badge {
    display: inline-block;
}

.ai-test-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 25px;
    color: #000;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: bounce 2s infinite;
    position: relative;
}

.ai-pulse-dot {
    width: 8px;
    height: 8px;
    background: #ff4500;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.ai-new-badge {
    background: #ff4500;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.ai-test-card {
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent !important;
}

    .ai-test-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
        border-color: #667eea !important;
    }

    .ai-test-card.ai-card-highlight {
        animation: cardHighlight 1s ease-in-out 2;
    }

@keyframes cardHighlight {
    0%, 100% {
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 20px 60px rgba(40, 167, 69, 0.3);
        transform: translateY(-8px);
    }
}

.ai-test-header {
    background: linear-gradient(135deg, #00928f 0%, #193763 100%);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

    .ai-test-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="white" opacity="0.05"/></svg>');
        background-size: 50px 50px;
        animation: moveBackground 20s linear infinite;
    }

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Enhanced AI Icon */
.ai-icon-enhanced {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(10px);
}

    .ai-icon-enhanced i {
        color: white !important;
        position: relative;
        z-index: 2;
        animation: float 3s ease-in-out infinite;
    }

.ai-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 20px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Feature Items */
.ai-feature-item {
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s;
}

    .ai-feature-item:hover {
        background: #f8f9fa;
        transform: translateY(-3px);
    }

    .ai-feature-item i {
        transition: all 0.3s;
    }

    .ai-feature-item:hover i {
        transform: scale(1.2) rotate(5deg);
    }

/* Test Option Cards */
.ai-test-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .ai-test-option::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, transparent, currentColor, transparent);
        transform: translateX(-100%);
        transition: transform 0.5s;
    }

    .ai-test-option:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        border-color: currentColor;
    }

        .ai-test-option:hover::before {
            transform: translateX(100%);
        }

    .ai-test-option:active {
        transform: translateY(-5px) scale(0.98);
    }

/* Recommended Badge */
.ai-test-recommended {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #ffffff 0%, #e7f3ff 100%);
}

.ai-recommended-badge {
    position: absolute;
    top: 10px;
    @(requestCulture.Equals("ar") ? "left" : "right"): 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

/* Test Option Icon */
.ai-test-option-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.ai-test-option:hover .ai-test-option-icon {
    transform: rotate(360deg) scale(1.1);
}

.ai-test-option-icon i {
    color: white;
    font-size: 24px;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #00928f 0%, #00b5b1 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #193763 0%, #2a5089 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #00928f 0%, #193763 100%);
}

/* Test Option Content */
.ai-test-option-content h5 {
    color: #212529;
    font-weight: 700;
}

.ai-test-option-content .badge {
    padding: 6px 12px;
    font-weight: 600;
    font-size: 13px;
}

/* Benefits Section */
.ai-benefits {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

    .ai-benefits i {
        font-size: 20px;
    }

/* Generation Indicator */
@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ai-test-trigger-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

        .ai-test-trigger-btn .ai-new-badge {
            font-size: 10px;
            padding: 2px 6px;
        }

    .ai-test-header {
        padding: 20px;
    }

    .ai-icon-enhanced {
        width: 60px;
        height: 60px;
    }

        .ai-icon-enhanced i {
            font-size: 24px !important;
        }

    .ai-test-header h4 {
        font-size: 18px;
    }

    .ai-test-option {
        margin-bottom: 15px;
    }
}

.question-content {
    line-height: 1.8;
    color: #212529;
}

.question-content strong {
    color: #00928f;
    font-weight: 700;
}

.question-content em {
    color: #6c757d;
    font-style: italic;
}

.question-content code {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    color: #d63384;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.question-content ul {
    margin: 10px 0;
    padding- @(requestCulture.Equals("ar") ? "right" : "left"): 20px;
}

.question-content li {
    margin-bottom: 5px;
}

.option-item {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #dee2e6;
    background: white;
}

    .option-item:hover {
        background-color: #f8f9fa;
        border-color: #00928f !important;
        transform: translateX(@(requestCulture.Equals("ar") ? "5px" : "-5px"));
        box-shadow: 0 2px 8px rgba(0, 146, 143, 0.15);
    }

    .option-item .option-letter {
        display: inline-block;
        min-width: 30px;
        font-weight: 700;
        color: #495057;
        font-size: 1.1em;
    }

    .option-item .option-text {
        display: inline-block;
        vertical-align: top;
    }

        .option-item .option-text code {
            background: #f8f9fa;
            padding: 2px 6px;
            border-radius: 3px;
            color: #d63384;
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
        }

        .option-item .option-text strong {
            color: #212529;
        }

    .option-item input[type="radio"]:checked ~ label {
        font-weight: 600;
        color: #0d6efd;
    }

        .option-item input[type="radio"]:checked ~ label .option-letter {
            color: #0d6efd;
        }

    .option-item:has(input[type="radio"]:checked) {
        background-color: #e7f3ff;
        border-color: #0d6efd !important;
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
    }

.question-nav-btn {
    min-width: 45px;
    height: 45px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

    .question-nav-btn:hover {
        transform: scale(1.1);
    }

    .question-nav-btn.answered {
        background-color: #198754;
        color: white;
        border-color: #198754;
    }

    .question-nav-btn.active {
        background-color: #0d6efd;
        color: white;
        border-color: #0d6efd;
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
    }

.card {
    border: none;
    border-radius: 12px;
}

.question-card {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.5s ease;
}

.badge {
    border-radius: 12px;
    font-weight: 600;
}

.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.cursor-pointer {
    cursor: pointer;
}
.card {
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.border-success {
    border-left: 4px solid #00928f !important;
}

.border-warning {
    border-left: 4px solid #ffc107 !important;
}

/* Question Display Styling */
.question-display {
    line-height: 1.8;
    color: #212529;
}

.question-display strong {
    color: #0d6efd;
    font-weight: 700;
}

.question-display em {
    color: #6c757d;
    font-style: italic;
}

.question-display code {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    color: #d63384;
    font-family: 'Courier New', monospace;
    font-size: 0.5em;
}

.question-display ul {
    margin: 10px 0;
    padding- @(requestCulture.Equals("ar") ? "right" : "left"): 20px;
}

.option-result-item {
    transition: all 0.2s;
}

    .option-result-item .option-icon {
        margin- @(requestCulture.Equals("ar") ? "left" : "right"): 8px;
        font-size: 1.1em;
    }

.option-letter-result {
    font-size: 0.7em;
    min-width: 30px;
    color: #495057;
}

.option-value-result {
    line-height: 1.6;
}

    .option-value-result code {
        background: #f8f9fa;
        padding: 2px 6px;
        border-radius: 3px;
        color: #d63384;
        font-family: 'Courier New', monospace;
        font-size: 0.55em;
    }

    .option-value-result strong {
        color: #212529;
    }

.option-badges {
    white-space: nowrap;
}

.explanation-box {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    border: none;
    border- @(requestCulture.Equals("ar") ? "right" : "left"): 4px solid #0dcaf0;
    border-radius: 8px;
}

.explanation-content {
    line-height: 1.8;
    color: #212529;
}

    .explanation-content strong {
        color: #0d6efd;
    }

    .explanation-content code {
        background: rgba(255, 255, 255, 0.7);
        padding: 2px 6px;
        border-radius: 3px;
        color: #d63384;
        font-family: 'Courier New', monospace;
        font-size: 0.9em;
    }

    .explanation-content ul {
        margin: 10px 0;
        padding- @(requestCulture.Equals("ar") ? "right" : "left"): 20px;
    }

.question-review {
    transition: all 0.3s;
}

    .question-review:hover {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1rem !important;
    }

.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.fa-check-circle, .fa-times-circle {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.display-1 {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}