﻿/* Enhanced Light Theme with Dynamic Organization Support */

/* ===== BASE STYLES ===== */
body {
    background-color: #f4f6fc;
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== CARD DESIGN ===== */
.neon-card {
    background: linear-gradient(to bottom right, #ffffff, #f8f9ff);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .neon-card:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

/* ===== HEADER STYLES ===== */
.neon-header h5 {
    margin: 0.5rem 0 0.2rem;
    color: #212529;
    text-shadow: none;
    font-weight: 700;
}

.neon-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
    text-shadow: none;
    font-weight: 700;
}

/* ===== AVATAR ===== */
.neon-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #343a40, #6c757d);
    color: #f8f9fa;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(33, 37, 41, 0.3);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* ===== INFO SECTION ===== */
.neon-info {
    text-align: left;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #333;
}

    .neon-info i {
        margin-right: 0.5rem;
        color: #2c3e50;
        transition: color 0.3s ease;
    }

/* ===== BUTTONS - Base styles (will be overridden by theme) ===== */
.btn-glow {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

    .btn-glow:hover {
        background: linear-gradient(135deg, #34495e, #3d566e);
        box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
        transform: translateY(-2px);
        color: white;
    }

    .btn-glow:active {
        transform: translateY(0);
    }

.btn-cancel {
    background-color: #f1f3f4;
    color: #5f6368;
    border: 1px solid #dadce0;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-cancel:hover {
        background-color: #e8eaed;
        color: #3c4043;
        border-color: #c1c7cd;
    }

/* ===== BADGES ===== */
.badge {
    border-radius: 12px;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    background-color: #e9ecef;
    color: #343a40;
}

.custom-badge, .info-text {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    color: #343a40;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.info-text {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.badge-light-muted {
    background-color: #f0f0f0;
    color: #666;
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.status-closed {
    background-color: #6c757d !important;
    color: white;
}

/* ===== FORM CONTAINER ===== */
.neon-form {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    color: #212529;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

    /* ===== FORM LABELS - Will be themed dynamically ===== */
    .neon-form .form-label {
        font-weight: 600 !important;
        color: #6f42c1;
        margin-bottom: 0.5rem;
        display: block;
        transition: color 0.3s ease;
    }

.form-label i {
    margin-right: 0.25rem;
    transition: color 0.3s ease;
}

/* ===== FORM CONTROLS ===== */
.neon-form .form-control,
.neon-form .form-select {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #212529;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

    .neon-form .form-control:focus,
    .neon-form .form-select:focus {
        background-color: #fff;
        outline: 0;
        /* Border and shadow will be set by theme */
    }

    .neon-form .form-control:hover:not(:focus):not([readonly]),
    .neon-form .form-select:hover:not(:focus) {
        border-color: #adb5bd;
    }

    .neon-form .form-control[readonly] {
        cursor: not-allowed;
        opacity: 0.8;
    }

/* ===== INPUT GROUPS ===== */
.input-group-text {
    border-radius: 12px 0 0 12px;
    transition: all 0.3s ease;
}

.input-group .form-control {
    border-radius: 0 12px 12px 0;
}

/* ===== SECTION HEADERS - Will be themed dynamically ===== */
.section-header {
    display: inline-block !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .section-header:first-of-type {
        margin-top: 0;
    }

    .section-header h5 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: white !important;
    }

    .section-header i {
        color: white !important;
    }

/* ===== VALIDATION MESSAGES ===== */
.neon-form .text-danger {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.text-success {
    transition: color 0.3s ease;
}

/* ===== VALIDATION STATES ===== */
[data-validation-state="valid"] {
    border-width: 2px !important;
}

[data-validation-state="warning"] {
    border-color: #ffc107 !important;
    border-width: 2px !important;
}

[data-validation-state="blocked"] {
    border-color: #dc3545 !important;
    border-width: 2px !important;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.modal-header {
    background-color: #f8f9fa;
    color: #343a40;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

    .modal-header .modal-title {
        color: #212529;
        font-weight: 600;
    }

.modal-body {
    background-color: #ffffff;
    color: #212529;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    justify-content: center;
    gap: 1.5rem;
}

/* ===== TABS ===== */
.nav-pills .nav-link {
    color: #6c757d;
    border-radius: 50px;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
}

    .nav-pills .nav-link.active {
        background: linear-gradient(135deg, #2c3e50, #34495e);
        color: white;
        box-shadow: 0 0 10px rgba(44, 62, 80, 0.4);
    }

    .nav-pills .nav-link:hover:not(.active) {
        background-color: #e9ecef;
    }

.tab-pane {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== REQUEST CARDS ===== */
.request-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

    .request-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
    }

    .request-card.closed {
        background-color: #f8f9fa !important;
        opacity: 0.7;
        box-shadow: none !important;
        cursor: not-allowed;
        border: 1px solid #dee2e6;
    }

        .request-card.closed:hover {
            transform: none !important;
            box-shadow: none !important;
        }

        .request-card.closed .card-title,
        .request-card.closed .card-text,
        .request-card.closed .custom-badge,
        .request-card.closed .info-text {
            color: #6c757d !important;
        }

        .request-card.closed .badge {
            opacity: 0.6;
        }

.overlay-closed {
    position: relative;
}

    .overlay-closed::after {
        content: "CLOSED";
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #6c757d;
        color: white;
        padding: 2px 8px;
        border-radius: 3px;
        font-size: 12px;
        font-weight: bold;
        z-index: 10;
    }

/* ===== TABLE ANIMATIONS ===== */
.table-success {
    animation: fadeHighlight 1.5s ease-in-out;
}

@keyframes fadeHighlight {
    0% {
        background-color: #d4edda;
    }

    100% {
        background-color: inherit;
    }
}

/* ===== BUTTON VARIANTS ===== */
.btn-outline-primary:hover {
    background-color: #1c2e4a;
    border-color: #1c2e4a;
    color: #fff;
}

/* ===== SEARCHABLE DROPDOWN STYLES ===== */
.search-dropdown-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.65rem 2rem 0.65rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 12px;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-input:focus {
        background-color: #fff;
        outline: 0;
    }

    .search-input:hover:not(:focus) {
        border-color: #adb5bd;
    }

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.search-option {
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.15s ease;
}

    .search-option:last-child {
        border-bottom: none;
    }

    .search-option:hover {
        background-color: #f8f9fa;
    }

    .search-option.highlighted {
        background-color: #0d6efd;
        color: #fff;
    }

    .search-option.selected {
        background-color: #e7f3ff;
        color: #0d6efd;
        font-weight: 500;
    }

.no-results {
    padding: 0.65rem 0.75rem;
    color: #6c757d;
    font-style: italic;
}

/* ===== CUSTOM SCROLLBAR ===== */
.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 12px 0;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
    transition: background 0.3s ease;
}

    .search-dropdown::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* ===== LOADING SPINNER ===== */
.spinner-border {
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .neon-form {
        padding: 1.5rem;
    }

    .section-header {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn-glow,
    .btn-cancel {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.fw-semibold {
    font-weight: 600 !important;
}

.text-muted {
    color: #6c757d !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.px-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}
