/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* ===== UTILITIES ===== */
.min-vh-75 {
    min-height: 75vh;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.hero-icon {
    font-size: 12rem;
    opacity: 0.1;
}

/* ===== NAVIGATION ===== */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
}

/* ===== CARDS ===== */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* ===== BUTTONS ===== */
.btn {
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
footer {
    margin-top: auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-icon {
        font-size: 8rem;
        margin-top: 40px;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ===== LOGIN MODAL ===== */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    color: var(--dark-color);
    font-size: 1.25rem;
}

.input-group .input-group-text {
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.input-group .form-control {
    border: 2px solid #e9ecef;
    border-left: none;
    transition: all 0.2s ease-in-out;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.input-group .form-control:focus + .input-group-text,
.input-group .input-group-text:has(+ .form-control:focus) {
    border-color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ===== TOOL SELECTION INTERFACE ===== */
.form-select-lg {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.form-select-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ===== NAVBAR UPDATES ===== */
.navbar-text {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar-text {
        display: none;
    }
}

/* ===== DASHBOARD STYLES ===== */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dropdown-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    transform: translateX(2px);
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Dashboard specific styles */
.dashboard-card {
    transition: all 0.2s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Loading overlay */
#loadingOverlay {
    backdrop-filter: blur(2px);
}

/* Toast styles */
.toast-container {
    z-index: 1055;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Admin section styles */
#adminSection .card {
    border-left-width: 4px !important;
}

#adminSection .btn-outline-warning:hover {
    transform: translateY(-1px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .container > .row {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== HELP SYSTEM STYLES ===== */
.help-content-area {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.help-content {
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.help-content h3,
.help-content h4,
.help-content h5 {
    color: inherit;
}

.help-content ul,
.help-content ol {
    margin-bottom: 0.75rem;
}

.help-content li {
    margin-bottom: 0.25rem;
}

.help-content pre {
    font-size: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
}

.help-content .alert {
    font-size: 0.85rem;
    border: none;
    border-left: 3px solid;
}

.help-content .alert-warning {
    border-left-color: var(--warning-color);
    background-color: rgba(255, 193, 7, 0.1);
}

.help-content .alert-danger {
    border-left-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

/* Help button hover effects */
[data-help-section] {
    transition: all 0.2s ease;
}

[data-help-section]:hover {
    transform: scale(1.05);
}

/* Custom scrollbar for help content */
.help-content::-webkit-scrollbar {
    width: 6px;
}

.help-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.help-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.help-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}