/* Base Styles for Mock Test Pages */
/* Common styles shared between test detail and result pages */

/* Enhanced Tab Styling */
.nav-tabs {
    border: none;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.nav-tabs .nav-item {
    flex: 1;
    text-align: center;
    margin: 0;
    padding: 0;
    min-width: 0;
    position: relative;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 10px;
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
    font-weight: 700;
    transition: all 0.3s ease;
    color: #6c757d !important;
    background: rgba(102, 126, 234, 0.1) !important;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-height: 48px;
    line-height: 1.2;
    word-break: keep-all;
    hyphens: none;
    font-size: 1rem;
}

.nav-tabs .nav-link::first-letter,
.nav-tabs .nav-link::first-line {
    font-size: inherit;
    line-height: inherit;
}

/* Ensure emoji icons are properly sized and aligned */
.nav-tabs .nav-link {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla", "Segoe UI Symbol", Arial, sans-serif;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(102, 126, 234, 0.2) !important;
    color: #495057 !important;
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.nav-tabs .nav-link:hover::before {
    opacity: 1;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
    transform: translateY(-1px);
    z-index: 2;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
    z-index: 3;
}

/* Ensure consistent hover states */
.nav-tabs .nav-link:hover:not(.active) {
    background: rgba(102, 126, 234, 0.2) !important;
    color: #495057 !important;
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    z-index: 1;
}

/* Skill Cards */
.skill-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: none;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Exercise Pills */
.nav-pills {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
}

.nav-pills .nav-item {
    flex: 1;
    text-align: center;
    margin: 0;
    padding: 0;
}

.nav-pills .nav-link {
    border-radius: 10px;
    margin: 0;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #495057;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

.nav-pills .nav-link:hover {
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.nav-pills .nav-link.active {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Question Styling */
.question-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 0.5rem;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Answer Options */
.form-check {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
}

/* Additional spacing for form elements in question cards */
.question-card .form-check {
    margin-left: 1rem;
}

.form-check:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
    position: relative;
    z-index: 2;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    padding-left: 0.5rem;
    position: relative;
    z-index: 2;
}

/* Make entire form-check area clickable */
.form-check::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

/* Audio Player Styling */
.audio-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.audio-section h5,
.audio-section h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.audio-section audio {
    width: 100%;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skill-card {
        padding: 1.5rem;
    }
    
    .nav-tabs {
        padding: 0.25rem;
        gap: 0.25rem;
        margin-bottom: 1.5rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-tabs .nav-item {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .nav-tabs {
        padding: 0.2rem;
        gap: 0.2rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .nav-tabs .nav-link::after {
        display: none; /* Hide the active indicator on very small screens */
    }
}
