/**
 * App Support panel on public/login pages (Officer Login).
 * Uses home2 gold/cream palette — accounts.css teal --primary must not apply here.
 */
#appSupportOverlay.appsupport-overlay {
    background: rgba(46, 20, 0, 0.45);
}

#appSupportPanel.appsupport-slide-panel {
    background: #FFF7ED;
    border-left: 1px solid #E8B870;
    box-shadow: -8px 0 28px rgba(74, 34, 0, 0.15);
}

#appSupportPanel .appsupport-slide-header {
    background: linear-gradient(135deg, #9A5A17 0%, #C47A1E 55%, #E8B870 100%);
    border-bottom: 1px solid #E8B870;
    color: #fff;
}

#appSupportPanel .appsupport-slide-header h6 {
    color: #fff;
}

#appSupportPanel .appsupport-slide-body {
    background: #FFF7ED;
    color: #2E1400;
}

#appSupportPanel #appSupportTabs {
    background: #FAE0B8;
    border-bottom: 2px solid #E8B870;
}

#appSupportPanel #appSupportTabs .nav-link {
    color: #5C2E0A !important;
    background: #fff !important;
    border: 1px solid #E8B870 !important;
    border-bottom: 2px solid transparent !important;
}

#appSupportPanel #appSupportTabs .nav-link:not(.active) {
    color: #5C2E0A !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(46, 20, 0, 0.1);
}

#appSupportPanel #appSupportTabs .nav-link:hover:not(.active) {
    background: #F5C98A !important;
    border-color: #C47A1E !important;
    color: #4A2200 !important;
}

#appSupportPanel #appSupportTabs .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, #5C2E0A 0%, #C47A1E 100%) !important;
    border-color: #C47A1E !important;
    border-bottom-color: #C47A1E !important;
    box-shadow: 0 2px 8px rgba(92, 46, 10, 0.25);
}

#appSupportPanel .appsupport-form-card {
    background: #fff;
    border: 1px solid #F0CC90;
    box-shadow: 0 2px 8px rgba(46, 20, 0, 0.06);
}

#appSupportPanel .appsupport-slide-body .form-label {
    color: #5C2E0A;
}

#appSupportPanel .appsupport-slide-body .form-control,
#appSupportPanel .appsupport-slide-body .form-select {
    border-color: #E8B870;
    color: #2E1400;
}

#appSupportPanel .appsupport-slide-body .form-control:focus,
#appSupportPanel .appsupport-slide-body .form-select:focus {
    border-color: #C47A1E;
    box-shadow: 0 0 0 0.2rem rgba(196, 122, 30, 0.2);
}

#appSupportPanel .appsupport-url-row .btn-fill-url {
    border-color: #E8B870;
    color: #5C2E0A;
    background: #FAE0B8;
}

#appSupportPanel .appsupport-url-row .btn-fill-url:hover {
    background: #F5C98A;
    border-color: #C47A1E;
    color: #4A2200;
}

#appSupportPanel .appsupport-field-hint {
    color: #7A3E14;
}

#appSupportPanel #btnAppSupportSubmit {
    background: linear-gradient(135deg, #5C2E0A 0%, #C47A1E 100%);
    border: 1px solid #5C2E0A;
    color: #fff;
}

#appSupportPanel #btnAppSupportSubmit:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(196, 122, 30, 0.35);
    color: #fff;
}

#appSupportPanel #appSupportDevMsg {
    background: #FAE0B8;
    border-color: #E8B870;
    color: #2E1400;
}

#appSupportPanel #tblAppSupportMyTickets thead th {
    background: #FAE0B8;
    color: #5C2E0A;
    border-bottom-color: #E8B870;
}

#appSupportPanel #tblAppSupportMyTickets tbody td {
    color: #2E1400;
    border-color: #F0CC90;
}

#appSupportPanel .btn-outline-primary {
    color: #5C2E0A;
    border-color: #C47A1E;
}

#appSupportPanel .btn-outline-primary:hover {
    background: #C47A1E;
    border-color: #C47A1E;
    color: #fff;
}

#appSupportPanel .btn-link {
    color: #C47A1E;
}

#appSupportPanel .btn-link:hover {
    color: #5C2E0A;
}

/* Fixed bottom-right launcher on Officer Login page */
.appsupport-login-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #5C2E0A 0%, #C47A1E 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 4px 18px rgba(92, 46, 10, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appsupport-login-fab:hover,
.appsupport-login-fab:focus {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(196, 122, 30, 0.45);
}

.appsupport-login-fab i {
    font-size: 1.1rem;
}

@media (max-width: 575.98px) {
    .appsupport-login-fab {
        right: 1rem;
        bottom: 1rem;
        padding: 0.75rem;
        border-radius: 50%;
        width: 3rem;
        height: 3rem;
        justify-content: center;
    }

    .appsupport-login-fab span {
        display: none;
    }
}
