.questions-container {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Beautiful Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, #5a0a9e 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
    }

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

    .btn btn-secondary:hover {
        background: linear-gradient(135deg, #5a6268 0%, #3d4348 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
    }

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

    .btn-success:hover {
        background: linear-gradient(135deg, #218838 0%, #1ba87e 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    }

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

    .btn-danger:hover {
        background: linear-gradient(135deg, #c82333 0%, #d91a7a 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    }

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

    .btn-warning:hover {
        background: linear-gradient(135deg, #e0a800 0%, #e56a0c 100%);
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    }

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

    .btn-info:hover {
        background: linear-gradient(135deg, #138496 0%, #5a32a3 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
    }

.btn-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(248, 249, 250, 0.3);
}

    .btn-light:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        color: #212529;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(248, 249, 250, 0.4);
    }

.btn-dark {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 58, 64, 0.3);
}

    .btn-dark:hover {
        background: linear-gradient(135deg, #23272b 0%, #1a1e21 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(52, 58, 64, 0.4);
    }

/* Outline Button Variants */
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

    .btn-outline-primary:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
    }

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
    box-shadow: none;
}

    .btn-outline-secondary:hover {
        background: #6c757d;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
    }

.btn-outline-success {
    background: transparent;
    color: #28a745;
    border: 2px solid #28a745;
    box-shadow: none;
}

    .btn-outline-success:hover {
        background: #28a745;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    }

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    box-shadow: none;
}

    .btn-outline-danger:hover {
        background: #dc3545;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    }

.btn-outline-warning {
    background: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
    box-shadow: none;
}

    .btn-outline-warning:hover {
        background: #ffc107;
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    }

.btn-outline-info {
    background: transparent;
    color: #17a2b8;
    border: 2px solid #17a2b8;
    box-shadow: none;
}

    .btn-outline-info:hover {
        background: #17a2b8;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
    }

.btn-outline-light {
    background: transparent;
    color: #f8f9fa;
    border: 2px solid #f8f9fa;
    box-shadow: none;
}

    .btn-outline-light:hover {
        background: #f8f9fa;
        color: #212529;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(248, 249, 250, 0.3);
    }

.btn-outline-dark {
    background: transparent;
    color: #212529;
    border: 2px solid #212529;
    box-shadow: none;
}

    .btn-outline-dark:hover {
        background: #212529;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(33, 37, 41, 0.3);
    }

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: calc(var(--border-radius) * 0.8);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: calc(var(--border-radius) * 1.2);
    font-weight: 700;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 1.25rem;
    border-radius: calc(var(--border-radius) * 1.4);
    font-weight: 800;
}

/* Special Button Styles for Profile and Questions Pages */
.profile-system .btn-primary,
.questions-system .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

    .profile-system .btn-primary:hover,
    .questions-system .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(67, 97, 238, 0.5);
    }

/* Icon Button Styles */
.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-icon.btn-sm {
        width: 36px;
        height: 36px;
    }

    .btn-icon.btn-lg {
        width: 60px;
        height: 60px;
    }

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: button-spinner 0.8s linear infinite;
    }

@keyframes button-spinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation for Call-to-Action Buttons */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(67, 97, 238, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

/* Glass Morphism Buttons */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(15px);
    }

/* Ensure Cases pages still have functional buttons */
.cases-container .btn {
    /* Cases pages get the beautiful buttons too! */
}

/* Bootstrap Badge Styles */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
    color: #000 !important;
}

.bg-dark {
    background-color: #212529 !important;
}

/* Bootstrap Tab Styles */
/*.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

    .nav-tabs .nav-link {
        margin-bottom: -1px;
        background: none;
        border: 1px solid transparent;
        border-top-left-radius: 0.375rem;
        border-top-right-radius: 0.375rem;
        color: #6c757d;
        padding: 0.5rem 1rem;
    }

        .nav-tabs .nav-link:hover,
        .nav-tabs .nav-link:focus {
            border-color: #e9ecef #e9ecef #dee2e6;
            isolation: isolate;
        }

        .nav-tabs .nav-link.active,
        .nav-tabs .nav-item.show .nav-link {
            color: #495057;
            background-color: #fff;
            border-color: #dee2e6 #dee2e6 #fff;
        }

        .nav-tabs .nav-link.active {
            color: var(--primary);
            border-bottom-color: #fff;
            font-weight: 600;
        }

.tab-content {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    background: #fff;
}*/
/* Fix for Bootstrap Tabs in Cases Details Page */
.nav-tabs .nav-link {
    margin-bottom: -1px;
    background: none;
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    color: #6c757d !important; /* Force dark text */
    padding: 0.5rem 1rem;
}

    .nav-tabs .nav-link:hover,
    .nav-tabs .nav-link:focus {
        border-color: #e9ecef #e9ecef #dee2e6;
        isolation: isolate;
        color: #495057 !important; /* Force dark text on hover */
        background-color: #f8f9fa !important; /* Light background on hover */
    }

    .nav-tabs .nav-link.active,
    .nav-tabs .nav-item.show .nav-link {
        color: var(--primary) !important; /* Primary color for active tab */
        background-color: #fff !important;
        border-color: #dee2e6 #dee2e6 #fff !important;
        font-weight: 600;
    }

/* Ensure tab content area has proper styling */
.tab-content {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    background: #fff;
}

/* Specific fix for Cases page tabs */
.cases-container .nav-tabs .nav-link {
    color: #6c757d !important;
}

    .cases-container .nav-tabs .nav-link:hover {
        color: #495057 !important;
        background-color: #f8f9fa !important;
    }

    .cases-container .nav-tabs .nav-link.active {
        color: var(--primary) !important;
        background-color: #fff !important;
        border-bottom-color: #fff !important;
    }

/* Override any conflicting sidebar styles for tabs */
.content-area .nav-tabs .nav-link {
    /* Completely reset any sidebar styles */
    border-left: 1px solid transparent !important;
    background: transparent !important;
    color: #6c757d !important;
}

    .content-area .nav-tabs .nav-link:hover {
        background: #f8f9fa !important;
        color: #495057 !important;
        border-left: 1px solid transparent !important;
    }

    .content-area .nav-tabs .nav-link.active {
        background: #fff !important;
        color: var(--primary) !important;
        border-bottom-color: #fff !important;
        border-left: 1px solid transparent !important;
    }

/* Make sure the nav-tabs container doesn't inherit sidebar styles */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

    .nav-tabs .nav-item {
        margin-bottom: 0;
    }
/* Bootstrap Form Styles */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        color: #212529;
        background-color: #fff;
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #212529;
}

/* Bootstrap Spinner Styles */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: 0.75s linear infinite spinner-border;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Bootstrap Alert Styles */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* Bootstrap Card Styles */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
}

.card-header {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    flex: 1 1 auto;
    padding: 1rem 1rem;
}

/* Bootstrap Table Styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
}

    .table th,
    .table td {
        padding: 0.5rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }

    .table thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #dee2e6;
    }

    .table tbody + tbody {
        border-top: 2px solid #dee2e6;
    }

/* Ensure proper spacing for Cases pages */
.content-area .container {
    max-width: 1400px;
    margin: 0 auto;
}
/*
.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area h6 {
    color: var(--dark);
    margin-bottom: 1rem;
}*/

/* Fix for Cases page specific layouts */
.cases-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Ensure proper button spacing in Cases pages */
.btn-group .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Fix for tab content background */
.tab-pane {
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Responsive fixes for Cases pages */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .cases-container {
        padding: 1rem;
        margin: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group .btn {
        width: auto;
    }
}

/* Print styles for Cases reports */
@media print {
    .sidebar,
    .top-navbar,
    .main-footer,
    .btn {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .content-area {
        padding: 0 !important;
    }

    .cases-container {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}
.questions-page {
    background-color: #f5f7fb;
    color: var(--dark);
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.questions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Questions List */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
    animation: fadeIn 0.5s ease forwards;
}

    .question-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        border-left-color: var(--primary);
    }

.question-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

    .question-title a {
        color: var(--dark);
        text-decoration: none;
        transition: var(--transition);
    }

        .question-title a:hover {
            color: var(--primary);
        }

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.question-stats {
    display: flex;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e0e7ff;
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.empty-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gray);
}

.empty-description {
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .stats-bar {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .question-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .question-stats {
        width: 100%;
        justify-content: space-between;
    }
}





.create-question-page {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    background-color: #f5f7fb;
    min-height: 100vh;
    padding: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.create-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

    .back-link:hover {
        color: var(--primary);
        background: var(--light-gray);
        text-decoration: none;
    }

.form-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

    .form-input:focus, .form-textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    }

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-input::placeholder {
    color: #adb5bd;
}

.validation-message {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}


.form-help {
    margin-top: 6px;
    font-size: 0.875rem;
    color: var(--gray);
}

.tags-example {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-example {
    background: #e0e7ff;
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-gray);
}

@media (max-width: 768px) {
    .create-container {
        padding: 0 15px;
    }

    .form-card {
        padding: 25px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    animation: slideIn 0.5s ease-out;
}




.question-details-page {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    background-color: #f5f7fb;
    min-height: 100vh;
    padding: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

    .back-link:hover {
        color: var(--primary);
        background: var(--light-gray);
        text-decoration: none;
    }

/* Question Card */
.question-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
    animation: slideIn 0.5s ease-out;
}

.question-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.question-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--success);
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
}

.author-role {
    font-size: 0.8rem;
    color: var(--gray);
}

.question-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 0.9rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: #e0e7ff;
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

    .tag:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-1px);
    }

/* Answers Section */
.answers-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.answers-count {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.answer-card {
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

    .answer-card:hover {
        border-left-color: var(--success);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

.answer-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 15px;
}

.answer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.answer-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.answer-time {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Answer Form */
.answer-form-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

    .form-textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    }

.validation-message {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}



    

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--light);
    border-radius: var(--border-radius);
    border: 2px dashed var(--light-gray);
}

.empty-icon {
    font-size: 3rem;
    color: var(--light-gray);
    margin-bottom: 15px;
}

.empty-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gray);
}

.empty-description {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-card {
    animation: slideIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .details-container {
        padding: 0 15px;
    }

    .question-card,
    .answers-section,
    .answer-form-section {
        padding: 20px;
    }

    .question-title {
        font-size: 1.5rem;
    }

    .question-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .question-stats {
        width: 100%;
        justify-content: space-between;
    }

    .answer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* Admin Controls - Fixed Colors */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-edit, .btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid;
    cursor: pointer;
    text-decoration: none;
    width: 40px;
    height: 40px;
    background: white;
}

.btn-edit {
    border-color: var(--warning);
    color: var(--warning);
    background: white;
}

    .btn-edit:hover {
        background: var(--warning);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.btn-delete {
    border-color: var(--danger);
    color: var(--danger);
    background: white;
}

    .btn-delete:hover {
        background: var(--danger);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    /* Make sure SVG icons inherit the text color */
    .btn-edit svg,
    .btn-delete svg {
        fill: currentColor;
        width: 16px;
        height: 16px;
    }

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background: #f0f9ff;
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: #fef2f2;
    border-color: var(--danger);
    color: var(--danger);
}

/* Responsive admin actions */
@media (max-width: 768px) {
    .question-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .admin-actions {
        justify-content: flex-end;
    }

    .btn-edit, .btn-delete {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

        .btn-edit svg,
        .btn-delete svg {
            width: 14px;
            height: 14px;
        }
}



/* Profile System Styles */
.profile-system {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
}

.avatar-placeholder.large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    border: 4px solid rgba(255,255,255,0.2);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.profile-username {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0 0 16px 0;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.95;
    max-width: 600px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.admin-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Content Sections */
.content-section {
    padding: 30px 40px;
    border-bottom: 1px solid #e9ecef;
}

    .content-section:last-child {
        border-bottom: none;
    }

.section-header {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Answer Cards */
.answers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.answer-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

    .answer-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

    .answer-card.accepted {
        border-left: 4px solid #28a745;
        background: #f8fff9;
    }

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.answer-question {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

    .answer-question a {
        color: #2c3e50;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .answer-question a:hover {
            color: #007bff;
        }

.accepted-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.answer-content {
    margin-bottom: 15px;
}

.answer-excerpt {
    color: #495057;
    line-height: 1.5;
    font-size: 0.95rem;
}

.answer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.answer-stats {
    display: flex;
    gap: 20px;
}

    .answer-stats .stat {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        color: #6c757d;
    }

.time-info {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .profile-meta {
        justify-content: center;
    }

    .content-section {
        padding: 20px;
    }

    .answer-header {
        flex-direction: column;
        gap: 10px;
    }

    .answer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .answer-stats {
        width: 100%;
        justify-content: space-between;
    }

    .profile-name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .profile-system {
        padding: 10px;
    }

    .profile-header {
        padding: 20px 15px;
    }

    .content-section {
        padding: 15px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Fix Profile Header Button */
.profile-header .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

    .profile-header .btn-primary:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
        transform: translateY(-2px);
    }

/* Fix Edit Icons Visibility */
.admin-actions .btn-edit {
    border-color: var(--primary);
    color: var(--primary);
    background: white;
}

    .admin-actions .btn-edit:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    /* Ensure SVG icons are visible in admin actions */
    .admin-actions .btn-edit svg,
    .admin-actions .btn-delete svg {
        fill: currentColor;
        width: 16px;
        height: 16px;
    }

/* Fix Answer Card Edit Button */
.answer-card .admin-actions .btn-edit {
    border-color: var(--primary);
    color: var(--primary);
    background: white;
}

    .answer-card .admin-actions .btn-edit:hover {
        background: var(--primary);
        color: white;
    }

/* Fix Question Card Edit Button in Profile */
.profile-content .question-card .admin-actions .btn-edit {
    border-color: var(--primary);
    color: var(--primary);
    background: white;
}

    .profile-content .question-card .admin-actions .btn-edit:hover {
        background: var(--primary);
        color: white;
    }

/* Add missing color variables */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #4cc9f0;
    --warning: #f59e0b;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Fix Stats Bar for Profile */
.profile-container .stats-bar {
    display: flex;
    gap: 20px;
    margin: 0 40px 30px 40px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: translateY(-20px);
}

/* Responsive fixes for profile stats */
@media (max-width: 768px) {
    .profile-container .stats-bar {
        margin: 0 20px 20px 20px;
        transform: translateY(-15px);
        flex-wrap: wrap;
        justify-content: space-around;
    }
}

@media (max-width: 480px) {
    .profile-container .stats-bar {
        margin: 0 15px 15px 15px;
        transform: translateY(-10px);
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 15px;
    }
}

/* Fix content section spacing */
.profile-container .content-section:first-of-type {
    padding-top: 40px;
}

/* Ensure consistent button styles across the app */


/* Fix back link in profile context */
.profile-container .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    background: white;
}

    .profile-container .back-link:hover {
        color: var(--primary);
        background: var(--light-gray);
        text-decoration: none;
    }

/* Fix answer card layout */
.answer-card .answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.answer-card .answer-question {
    flex: 1;
    margin-right: 15px;
}

.answer-card .admin-actions {
    flex-shrink: 0;
}

/* Ensure consistent question card styling in profile */
.profile-content .question-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
    margin-bottom: 0;
}

    .profile-content .question-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        border-left-color: var(--primary);
    }

    /* Fix the edit button in question cards */
    .profile-content .question-card .admin-actions {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .profile-content .question-card .btn-edit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        border-radius: var(--border-radius);
        transition: var(--transition);
        border: 2px solid var(--primary);
        color: var(--primary);
        background: white;
        cursor: pointer;
        text-decoration: none;
        width: 36px;
        height: 36px;
    }

        .profile-content .question-card .btn-edit:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .profile-content .question-card .btn-edit svg {
            fill: currentColor;
            width: 14px;
            height: 14px;
        }



/* Welcome Page Styles */
.welcome-system {
    background: linear-gradient(135deg, #f5f7fb 0%, #e4e8f8 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.welcome-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

    .hero-section::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 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
        background-size: cover;
    }

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/*.btn btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

    .btn btn-secondary:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
        transform: translateY(-2px);
        text-decoration: none;
    }*/

.hero-image {
    animation: slideInRight 0.8s ease-out;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

    .hero-img:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }

/* Features Section */
.features-section {
    padding: 100px 40px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-color: var(--primary);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Audience Section */
.audience-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.audience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.audience-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark);
}

.audience-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.audience-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--dark);
    padding: 15px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .audience-item:hover {
        transform: translateX(10px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .audience-item svg {
        color: var(--primary);
        flex-shrink: 0;
    }

.audience-image {
    text-align: center;
}

.audience-img {
    width: 100%;
    max-width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

    .cta-content h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .cta-content p {
        font-size: 1.2rem;
        margin-bottom: 50px;
        opacity: 0.9;
    }

.cta-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step p {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .audience-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .audience-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .features-section,
    .audience-section,
    .cta-section {
        padding: 60px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-steps {
        flex-direction: column;
        gap: 30px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .audience-item {
        font-size: 1rem;
        padding: 12px 16px;
    }
}




/* Layout Styles */
.layout-body {
    margin: 0;
    padding: 0;
    background: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-text small {
    opacity: 0.7;
    font-size: 0.8rem;
}

.sidebar-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

/* Navigation Styles */
.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

    .nav-link:hover {
        background: rgba(255,255,255,0.1);
        color: white;
        border-left-color: var(--primary);
    }

    .nav-link.active {
        background: linear-gradient(90deg, rgba(67, 97, 238, 0.2) 0%, transparent 100%);
        color: white;
        border-left-color: var(--primary);
    }

.nav-icon {
    width: 24px;
    text-align: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.nav-text {
    flex: 1;
    font-weight: 500;
}

.nav-arrow {
    transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .nav-arrow {
    transform: rotate(180deg);
}

/* Submenu Styles */
.submenu {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid var(--primary);
    margin-left: 25px;
}

    .submenu .nav-link {
        padding: 10px 25px 10px 15px;
        font-size: 0.9rem;
        border-left: none;
    }

    .submenu .nav-icon {
        font-size: 0.9rem;
        margin-right: 12px;
    }

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navbar */
.top-navbar {
    background: white;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-content {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 10px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    display: none;
}

    .sidebar-toggle:hover {
        background: var(--light-gray);
        color: var(--dark);
    }

.navbar-title {
    flex: 1;
}

    .navbar-title h1 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--dark);
    }

/* User Menu */
.user-menu {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

    .user-dropdown-toggle:hover {
        background: var(--light-gray);
    }

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

    .dropdown-item:hover {
        background: var(--light-gray);
        text-decoration: none;
        color: var(--dark);
    }

.dropdown-divider {
    height: 1px;
    background: var(--light-gray);
    margin: 5px 0;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-login {
    color: var(--primary);
    border: 1px solid var(--primary);
}

    .btn-login:hover {
        background: var(--primary);
        color: white;
        text-decoration: none;
    }

.btn-register {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

    .btn-register:hover {
        background: var(--primary-dark);
        color: white;
        text-decoration: none;
    }

/* Content Area */
.content-area {
    flex: 1;
    padding: 30px;
    background: #f5f7fb;
}

/* Footer */
.main-footer {
    background: white;
    border-top: 1px solid var(--light-gray);
    padding: 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

    .footer-link:hover {
        color: var(--primary);
        text-decoration: none;
    }

/* Mobile Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .sidebar.mobile-hidden {
            transform: translateX(-100%);
        }

        .sidebar:not(.mobile-hidden) {
            transform: translateX(0);
        }

    .sidebar-toggle {
        display: block;
    }

    .navbar-content {
        padding: 15px 20px;
    }

    .content-area {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 12px 15px;
    }

    .content-area {
        padding: 15px;
    }

    .user-dropdown-toggle span {
        display: none;
    }

    .auth-buttons {
        gap: 8px;
    }

    .btn-login, .btn-register {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Animation for page transitions */
.content-area {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

    .sidebar-content::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.5);
    }


/* Preserve whitespace and formatting for question and answer content */
.question-description,
.answer-content,
.form-textarea {
    white-space: pre-wrap; /* Preserve spaces and line breaks */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Modern version of word-wrap */
}

/* Additional styling for better readability */
.question-description {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #495057;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--success);
}

.answer-content {
    line-height: 1.6;
    font-size: 1rem;
    color: #495057;
    margin-bottom: 15px;
}

/* Ensure textareas also preserve formatting when displaying existing content */
.form-textarea {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    font-family: inherit; /* Use the same font as the rest of the site */
}

    /* Make sure the textarea maintains formatting when user types */
    .form-textarea:focus {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

/* Additional styling for better textarea appearance */
.form-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* For the question description display */
.question-description {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

/* For answer content display */
.answer-content {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Make sure the text in textareas is properly formatted when loaded */
textarea.form-control,
textarea.form-textarea {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}



/* Threaded Replies Styles */
.answer-thread {
    margin-bottom: 25px;
}

.answer-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.replies-list {
    margin-left: 40px;
    margin-top: 15px;
    border-left: 3px solid var(--light-gray);
    padding-left: 20px;
}

.reply-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

    .reply-card::before {
        content: '';
        position: absolute;
        left: -23px;
        top: 20px;
        width: 20px;
        height: 2px;
        background: var(--light-gray);
    }

.reply-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #495057;
}

.reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray);
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Reply Actions */
.answer-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-reply {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

    .btn-reply:hover {
        background: var(--primary);
        color: white;
    }

/* Quick Reply Form */
.quick-reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px dashed var(--light-gray);
}

.reply-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.reply-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Responsive design for replies */
@media (max-width: 768px) {
    .replies-list {
        margin-left: 20px;
        padding-left: 15px;
    }

    .reply-card::before {
        left: -18px;
        width: 15px;
    }

    .reply-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .answer-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}


/* Car Registration Specific Styles */
.instructions {
    background: #f0f9ff;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

    .instructions ul {
        margin: 10px 0 0 0;
        padding-left: 20px;
    }

    .instructions li {
        margin-bottom: 5px;
    }

/* File Upload Area */
.file-upload-area {
    border: 2px dashed var(--light-gray);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

    .file-upload-area:hover,
    .file-upload-area.drag-over {
        border-color: var(--primary);
        background: var(--primary-light);
    }

.file-input {
    display: none;
}

.upload-placeholder svg {
    color: var(--gray);
    margin-bottom: 10px;
}

.file-selected {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
}

/* Extracted Data Grid */
.extracted-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.data-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success);
}

    .data-section h3 {
        margin-top: 0;
        margin-bottom: 15px;
        color: var(--dark);
        font-size: 1.1rem;
        border-bottom: 2px solid var(--light-gray);
        padding-bottom: 8px;
    }

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
}

    .data-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .data-row strong {
        color: var(--dark);
        font-weight: 600;
    }

.data-found {
    color: var(--success);
    font-weight: 600;
}

.data-missing {
    color: var(--danger);
    font-style: italic;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .extracted-data-grid {
        grid-template-columns: 1fr;
    }

    .data-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* Dual Image Upload Styles */
.file-upload-area.front-side {
    border-left: 4px solid var(--primary);
}

.file-upload-area.back-side {
    border-left: 4px solid var(--success);
}

/* Image Previews */
.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.image-preview {
    text-align: center;
}

    .image-preview strong {
        display: block;
        margin-bottom: 10px;
        color: var(--dark);
    }

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--border-radius);
    border: 2px solid var(--light-gray);
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-previews {
        grid-template-columns: 1fr;
    }
}


/* Auth Notice Styles */
.auth-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.auth-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

    .auth-notice-content svg {
        flex-shrink: 0;
        margin-top: 2px;
    }

.auth-notice h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.auth-notice p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.auth-notice a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

    .auth-notice a:hover {
        opacity: 0.8;
    }

/* Auth Prompt Styles */
.auth-prompt {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
}

.auth-prompt-content h3 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.auth-prompt-content p {
    margin: 0 0 25px 0;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.auth-prompt-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-notice-content {
        flex-direction: column;
        text-align: center;
    }

    .auth-prompt-actions {
        flex-direction: column;
        align-items: center;
    }

        .auth-prompt-actions .btn {
            min-width: 200px;
        }
}