.app-logo {
    position: relative; left: -30px; top: -24px; margin-bottom: -53px;width: 285px;
}
.sidebar{
    overflow-x: hidden;
}
.nav-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
}

.nav-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.app-topbar {
    background: transparent;
    padding: 0;
}

.nav-btn-letter {
    font-weight: 700;
    color: var(--text-secondary);
}

.topbar-logout-form {
    margin: 0;
}

.topbar-logout-form .nav-btn {
    color: var(--text-primary);
}

.app-alerts {
    margin-bottom: 20px;
}

.container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.card-header,
.card-footer {
    background: transparent !important;
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.list-group,
.list-group-item {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--glass-border);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.table thead th {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-muted {
    color: var(--text-muted) !important;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border-color: var(--emerald-light);
    box-shadow: 0 0 0 0.2rem rgba(79, 143, 201, 0.18);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select option {
    background: #0e1b2e;
    color: #e5e7eb;
}

.btn {
    width: auto;
    border-radius: 12px;
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    border: 0;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger {
    color: var(--text-primary);
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.035);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.badge {
    border-radius: 999px;
}

.dropdown-menu {
    background: rgba(14, 27, 46, 0.98);
    border: 1px solid var(--glass-border);
}

.dropdown-item {
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--glass-hover);
}

.auth-logo-img {
    width: 450px;
    height: 170px;
    object-fit: contain;
}

.login-logo {
    background: transparent;
    box-shadow: none;
}

.login-page {
    position: relative;
    padding: 34px 18px;
    background:
        radial-gradient(circle at 22% 18%, rgba(1, 146, 255, .16), transparent 30%),
        radial-gradient(circle at 82% 82%, rgba(59, 169, 255, .12), transparent 28%);
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0 45%, rgba(1, 146, 255, .07) 50%, transparent 55% 100%);
    animation: authShine 7s ease-in-out infinite;
}

.login-container {
    animation: authRise .65s ease both;
}

.login-card {
    border-color: rgba(1, 146, 255, .28);
    background: linear-gradient(180deg, rgba(3, 38, 89, .38), rgba(0, 3, 10, .72)), var(--glass-bg);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.login-card::after {
    content: "";
    position: absolute;
    inset: auto 26px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 169, 255, .62), transparent);
}

.login-header {
    margin-bottom: 28px;
}

.login-logo {
    width: auto;
    height: auto;
    margin-bottom: 12px;
}

.login-title {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
}

.login-subtitle {
    max-width: 380px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.55;
}

.form-input {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(1, 146, 255, .22);
}

.form-input:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 4px rgba(1, 146, 255, .14), 0 0 24px rgba(1, 146, 255, .12);
}

.password-field {
    position: relative;
}

.password-field .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: 1px solid rgba(1, 146, 255, .22);
    border-radius: 10px;
    background: rgba(1, 146, 255, .08);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.password-toggle:hover {
    background: rgba(1, 146, 255, .16);
    border-color: var(--gold-light);
}

.checkbox-label input {
    accent-color: var(--gold);
}

.forgot-link,
.login-footer a {
    color: var(--gold-light);
    font-weight: 700;
}

.theme-toggle-float {
    border-color: rgba(1, 146, 255, .28);
}

@keyframes authRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes authShine {
    0%, 100% {
        opacity: .35;
        transform: translateX(-8%);
    }
    50% {
        opacity: .75;
        transform: translateX(8%);
    }
}

.invalid-feedback {
    display: block;
}

.notification-menu {
    position: relative;
}

.notification-menu .nav-btn svg,
.nav-icon svg {
    width: 20px;
    height: 20px;
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(1, 146, 255, 0.35);
}

.notification-dropdown {
    position: absolute;
    top: 54px;
    right: -55px;
    width: min(390px, calc(100vw - 28px));
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(3, 38, 89, 0.92), rgba(0, 3, 10, 0.98)),
        var(--glass-bg);
    border: 1px solid rgba(1, 146, 255, 0.34);
    border-radius: 16px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
    z-index: 500;
}

.notification-menu:hover .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown-header,
.notification-all {
    display: block;
    padding: 14px 16px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(1, 146, 255, 0.18);
    background: rgba(0, 3, 10, 0.32);
}

.notification-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-color: rgba(59, 169, 255, 0.72) rgba(245, 249, 250, 0.06);
    scrollbar-width: thin;
}

.notification-dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.notification-dropdown-list::-webkit-scrollbar-track {
    background: rgba(245, 249, 250, 0.06);
}

.notification-dropdown-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    border-radius: 999px;
}

.notification-all {
    border-top: 1px solid rgba(1, 146, 255, 0.18);
    border-bottom: 0;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.notification-all:hover {
    background: rgba(1, 146, 255, 0.14);
    color: #fff;
}

.notification-mini button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(1, 146, 255, 0.12);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.notification-mini button:hover {
    background: rgba(1, 146, 255, 0.1);
}

.notification-mini.is-unread button,
.notification-unread {
    background: linear-gradient(90deg, rgba(1, 146, 255, 0.22), rgba(1, 146, 255, 0.08)) !important;
    border-left: 3px solid var(--gold-light);
}

.notification-mini strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    line-height: 1.25;
}

.notification-mini span {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
}

.notification-empty {
    padding: 18px;
    color: var(--text-muted);
}

[data-theme="light"] .notification-dropdown {
    background:
        linear-gradient(180deg, rgba(246, 249, 253, 0.98), rgba(226, 232, 240, 0.98)),
        var(--glass-bg);
    border-color: rgba(1, 146, 255, 0.2);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

[data-theme="light"] .notification-dropdown-header,
[data-theme="light"] .notification-all {
    background: rgba(255, 255, 255, 0.62);
}

[data-theme="light"] .notification-mini strong {
    color: var(--text-primary);
}

[data-theme="light"] .notification-mini.is-unread button,
[data-theme="light"] .notification-unread {
    background: linear-gradient(90deg, rgba(1, 146, 255, 0.14), rgba(1, 146, 255, 0.04)) !important;
}

.chat-shell {
    height: calc(100vh - 190px);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

.chat-composer {
    background: transparent !important;
}

.typing-indicator {
    min-height: 24px;
    color: rgba(236, 242, 255, .7);
    font-size: .88rem;
    font-style: italic;
}

.chat-row {
    display: flex;
    margin-bottom: 14px;
}

.chat-row-mine {
    justify-content: flex-end;
}

.chat-row-other {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: min(680px, 78%);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 14px;
    position: relative;
}

.chat-bubble-mine {
    background: rgba(79, 143, 201, .22);
}

.chat-bubble-other {
    background: rgba(255,255,255,.055);
}

.chat-icon-actions {
    position: absolute;
    top: 6px;
    right: 8px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity .15s ease;
}

.chat-bubble:hover .chat-icon-actions {
    opacity: 1;
}

.chat-icon-btn {
    border: 0;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: rgba(236, 242, 255, .85);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
}

.chat-icon-btn:hover {
    background: rgba(79, 143, 201, .34);
}

.chat-icon-danger:hover {
    background: rgba(220, 53, 69, .34);
    color: #fff;
}

.chat-message-body {
    line-height: 1.35;
}

.chat-edit-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(79, 143, 201, .18);
    border: 1px solid var(--glass-border);
}

.chat-receipt {
    margin-top: 8px;
    text-align: right;
    font-size: .78rem;
}

.chat-receipt summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chat-receipt summary::-webkit-details-marker {
    display: none;
}

.chat-receipt-delivered {
    color: rgba(236, 242, 255, .55);
}

.chat-receipt-read {
    color: #57b8ff;
}

.chat-checks {
    letter-spacing: -3px;
    padding-right: 3px;
    font-weight: 700;
}

.chat-receipt-details {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    color: rgba(236, 242, 255, .78);
    text-align: left;
    line-height: 1.5;
}

.chat-attachment {
    max-height: 220px;
}

.report-summary {
    display: grid;
    gap: 14px;
}

.report-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.report-meta-item {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,.055);
}

.report-meta-item span {
    display: block;
    color: rgba(236, 242, 255, .64);
    font-size: .78rem;
}

.report-meta-item strong {
    display: block;
    margin-top: 2px;
}

.report-note {
    border-left: 3px solid var(--accent);
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    color: rgba(236, 242, 255, .82);
}

.report-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
}

.report-photo-card {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.045);
}

.report-photo-link {
    display: block;
    aspect-ratio: 4 / 3;
    background: rgba(0,0,0,.16);
}

.report-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.report-photo-caption {
    padding: 8px 10px;
    font-size: .82rem;
    font-weight: 600;
}

.report-photo-action {
    padding: 0 10px 10px;
}

.form-label.required::after {
    content: " *";
    color: #ff6b6b;
    font-weight: 700;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.post-actions {
    display: flex;
    gap: 10px;
    padding: 14px 0;
}

.comment {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    margin-bottom: 8px;
}

.comment-delete,
.comment-edit {
    border: 0;
    background: transparent;
    color: var(--gold-light);
    font-size: 12px;
}

.profile-hero {
    display: flex;
    gap: 22px;
    align-items: center;
}

.profile-photo-large {
    width: 104px;
    height: 104px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.06);
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.auth-wide {
    max-width: 560px;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.auth-actions .form-check-label {
    color: var(--text-secondary);
}

.auth-link {
    color: var(--gold-light);
}

.auth-link:hover {
    color: var(--text-primary);
}

/* @media (max-width: 768px) {
    .app-logo {
        width: 210px;
    }
} */
