/* ai-test.css - AI Test Page Specific Styles */



/* ==================== AVAILABLE TESTS ==================== */
.available-tests {
    margin-bottom: 30px;
}

.test-count {
    font-size: 14px;
    color: #666;
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 20px;
}

.test-card {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
}

.test-card:hover {
    background: #f8f9ff;
    border-color: #1a237e;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.1);
}

.test-card .test-icon {
    width: 48px;
    height: 48px;
    background: #e8eaf6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1a237e;
    flex-shrink: 0;
}

.test-card .test-info {
    flex: 1;
}

.test-card .test-info h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}

.test-card .test-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.test-meta {
    font-size: 12px;
    color: #888;
    margin-right: 14px;
}

.test-meta i {
    margin-right: 4px;
    color: #1a237e;
}

.test-start-btn {
    padding: 8px 20px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.test-start-btn:hover {
    background: #0d1757;
    transform: scale(1.05);
}

/* ==================== AI STATISTICS ==================== */
.ai-stats {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #e8eaf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1a237e;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 22px;
    color: #1a237e;
    margin: 0;
    font-weight: 700;
}

.stat-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .ai-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .test-card {
        flex-wrap: wrap;
    }
    
    .test-start-btn {
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-feature-card {
        padding: 16px;
    }
    
    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ==================== ANIMATIONS ==================== */
.ai-feature-card,
.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.ai-feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.ai-feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.ai-feature-card:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BADGE STYLING ==================== */
.menu-item .badge.new {
    background: #4caf50;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
}

.sidebar-menu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

/* Active state for sidebar items */
.sidebar-menu .menu-item.active {
    background: #e8eaf6;
    color: #1a237e;
    border-right: 3px solid #1a237e;
}