/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* ===== ENHANCED NAVIGATION ===== */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Desktop Navbar - Ensure proper Bootstrap behavior */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
    }
    
    .navbar-nav.me-auto {
        flex-direction: row;
        margin-right: auto !important;
    }
    
    .navbar-nav.ms-auto {
        flex-direction: row;
        margin-left: auto !important;
    }
}

/* User Menu Responsive */
.navbar-nav.ms-auto .dropdown-menu {
    min-width: 280px;
}

@media (max-width: 991.98px) {
    .navbar-nav.ms-auto .dropdown-menu {
        min-width: 100%;
        margin-top: 0.5rem;
        border: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav.ms-auto .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-nav.ms-auto .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* Brand Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.brand-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

/* Enhanced Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    min-width: 280px;
    margin-top: 0.5rem;
}

.dropdown-menu-lg {
    min-width: 320px;
}

.dropdown-header {
    font-weight: 600;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: var(--transition);
    border-radius: 0;
    margin: 0.125rem 0.5rem;
    border-radius: var(--border-radius);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    transform: translateX(2px);
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Mobile Toggle Button */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Search Bar */
.navbar .input-group {
    max-width: 300px;
}

.navbar .form-control {
    border-radius: 20px 0 0 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: none;
}

.navbar .btn-outline-light {
    border-radius: 0 20px 20px 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
}

.navbar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    /* ===== MOBILE MENU SIMPLE VERTICAL LAYOUT ===== */
    .navbar-collapse {
        /* Sliding animation için gerekli stiller */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        z-index: 1050;
        background: rgba(220, 53, 69, 0.98);
        margin-top: 0;
        padding: 1rem;
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto;
        /* Bootstrap collapse davranışını devre dışı bırak */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Tüm menü öğelerini basit şekilde alt alta sırala */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius);
        margin: 0.25rem 0;
        display: block;
        width: 100%;
        text-align: left;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .dropdown-menu {
        border: none;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        margin-top: 0.5rem;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
        position: static !important;
        transform: none !important;
        width: 100% !important;
        float: none !important;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 1rem;
        margin: 0.125rem 0;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .dropdown-header {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.8rem;
    }
    
    .brand-subtitle {
        display: none !important;
    }
    
    /* Kullanıcı menüsü mobilde tam genişlik */
    .navbar-nav.ms-auto .dropdown-menu {
        min-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Logout buton stilleri */
    .btn-outline-danger {
        border-color: rgba(255, 255, 255, 0.3);
        color: #fff;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        text-align: center;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
    }
    
    .btn-outline-danger:hover {
        background-color: #dc3545;
        border-color: #dc3545;
        color: #fff;
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    /* Navbar toggle button için z-index ayarı */
    .navbar-toggler {
        z-index: 1051;
        position: relative;
    }
    
    /* Brand için z-index ayarı */
    .navbar-brand {
        z-index: 1051;
        position: relative;
    }
    
    /* Overlay arka plan */
    .navbar-collapse::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Menü içeriği için scroll bar stilleri */
    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .brand-icon {
        width: 32px;
        height: 32px;
    }
    
    .brand-icon i {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .dropdown-menu {
        min-width: 100%;
        margin-top: 0.25rem;
    }
    
    .dropdown-item {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* navbar-collapse stilleri yukarıdaki media query'de tanımlandı */
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .dropdown-item:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
    }
    
    .dropdown-item {
        padding: 1rem;
    }
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== FORMS ===== */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-select {
    border-radius: var(--border-radius);
}

/* ===== TABLES ===== */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--secondary-color);
}

/* ===== SIDEBAR ===== */
.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    transition: var(--transition);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: var(--light-color);
    transform: translateX(5px);
}

.list-group-item i {
    font-size: 1.25rem;
}

/* ===== ENHANCED FOOTER ===== */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

footer .brand-icon {
    width: 48px;
    height: 48px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

footer .brand-icon:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: scale(1.1);
}

footer .brand-icon i {
    font-size: 1.5rem;
    color: #dc3545;
}

footer h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
}

footer h6 i {
    margin-right: 0.5rem;
    color: #dc3545;
}

footer .list-unstyled li {
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

footer .list-unstyled li:hover {
    transform: translateX(5px);
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--transition);
}

footer .text-muted:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

footer .d-flex.align-items-center {
    transition: var(--transition);
}

footer .d-flex.align-items-center:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    footer {
        text-align: center;
    }
    
    footer .d-flex {
        justify-content: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
    
    footer .list-unstyled li:hover {
        transform: none;
    }
    
    footer .d-flex.align-items-center:hover {
        transform: none;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 576px) {
    .navbar-nav {
        text-align: center;
    }
    
    .dropdown-menu {
        text-align: center;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn {
        width: auto;
    }
}

/* ===== UTILITY CLASSES ===== */
.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

.transition {
    transition: var(--transition);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ===== CUSTOM COMPONENTS ===== */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background-color: var(--success-color);
    color: white;
}

.status-pending {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.status-inactive {
    background-color: var(--secondary-color);
    color: white;
}

/* ===== LOADING SPINNER ===== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ===== SEARCH BAR ===== */
.search-container {
    position: relative;
}

.search-container .form-control {
    padding-right: 2.5rem;
}

.search-container .btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--secondary-color);
}

/* ===== MOBILE MENU IMPROVEMENTS ===== */
/* Bu kısım yukarıdaki media query'de zaten tanımlandı - çakışmayı önlemek için kaldırıldı */

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .sidebar,
    .footer,
    .btn,
    .alert {
        display: none !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOCUS STYLES ===== */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== ENERJİSA ÜRETİM LOGO ===== */
.enerjisa-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color: #333;
    letter-spacing: 0.5px;
    line-height: 1;
}

.enerjisa-logo .enerjisa-text {
    display: flex;
    align-items: center;
}

.enerjisa-logo .circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 2px;
}

.enerjisa-logo .uretim-text {
    margin-left: 15px;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .enerjisa-logo {
        font-size: 1.5rem;
    }
    
    .enerjisa-logo .circle {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
    
    .enerjisa-logo .uretim-text {
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    .enerjisa-logo {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .enerjisa-logo .circle {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }
    
    .enerjisa-logo .uretim-text {
        margin-left: 0;
    }
}

/* ===== QR CONTROL PAGE SPECIFIC STYLES ===== */
.question-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6 !important;
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.answer-btn {
    min-height: 48px;
    font-size: 1rem;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.2s ease;
}

.answer-btn:hover {
    transform: scale(1.02);
}

.answer-btn:active {
    transform: scale(0.98);
}

/* Camera and photo styles */
#cameraPreview {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Photo upload section improvements */
.photo-upload-section {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.photo-upload-section:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.photo-upload-section .form-control {
    border: 1px solid #ced4da;
    background: white;
}

.photo-upload-section .btn {
    border-width: 2px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* Camera button styles for FireTube Create page */
#captureBtn {
    width: 100%;
    height: auto;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#captureBtn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#captureBtn:active {
    transform: translateY(0);
}

/* Camera modal button styles */
#capturePhotoBtn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

#capturePhotoBtn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

#photoPreview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#previewImg {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

#removePhotoBtn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.3s ease;
}

#removePhotoBtn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .question-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .answer-btn {
        min-height: 56px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    #captureBtn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    #removePhotoBtn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0.25rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .question-card {
        padding: 0.75rem !important;
    }
    
    .answer-btn {
        min-height: 60px;
        font-size: 1.2rem;
    }
    
    #captureBtn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 1.25rem 1.5rem;
        font-size: 1.2rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .answer-btn {
        min-height: 60px;
        font-size: 1.1rem;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

/* Success/Error states for answer buttons */
.answer-btn.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.answer-btn.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.answer-btn.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
}

/* Modal improvements */
.modal-dialog {
    max-width: 90%;
}

@media (max-width: 576px) {
    .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}