/* NexusVault Premium Dark Theme Stylesheet */

:root {
    --bg-main: #050507;
    --bg-sidebar: #0b0b0e;
    --bg-card: rgba(18, 18, 22, 0.65);
    --bg-card-hover: rgba(26, 26, 32, 0.8);
    --bg-input: #151518;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --accent-blue: #3b82f6;
    --accent-blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f57c00;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(241, 245, 249, 0.9);
    --bg-input: #f1f5f9;
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
}

[data-theme="light"] .text-white:not(.btn):not(.badge):not(.alert *):not(.modal-content *):not(.upgrade-card *) {
    color: var(--text-primary) !important;
}

[data-theme="light"] .btn-secondary {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .btn-secondary:hover {
    background-color: #cbd5e1 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

[data-theme="light"] .switch-container {
    background-color: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chat-footer {
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .attachment-card {
    background-color: #f1f5f9;
}

[data-theme="light"] .nexus-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient glow blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.07;
    filter: blur(140px);
    transition: opacity 0.5s ease;
}

@keyframes float-orb-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-orb-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-70px, -50px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

body::before {
    top: -10%;
    left: -10%;
    background: #4f46e5;
    animation: float-orb-1 25s infinite ease-in-out;
}

body::after {
    bottom: -10%;
    right: -10%;
    background: #06b6d4;
    animation: float-orb-2 30s infinite ease-in-out;
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
    opacity: 0.03;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--border-color) 0%, rgba(59, 130, 246, 0.25) 100%);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-gradient);
}

/* Grid Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sidebar-logo h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.sidebar-logo span {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-section-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 12px 16px 4px 16px;
    margin-top: 16px;
    opacity: 0.75;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
    opacity: 0.55;
}

.sidebar-section-title:first-of-type {
    margin-top: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 13.5px;
    transition: all 0.2s ease-in-out;
}

.sidebar-link i,
.sidebar-link svg {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease-in-out;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.sidebar-link:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.sidebar-link:hover i,
.sidebar-link:hover svg {
    color: var(--accent-blue);
    transform: scale(1.15);
}

.sidebar-link.active {
    background: var(--accent-blue-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.sidebar-link.active i,
.sidebar-link.active svg {
    color: white !important;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upgrade-card {
    background: linear-gradient(180deg, #1e1b4b 0%, #111029 100%);
    border: 1px solid #312e81;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.upgrade-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.upgrade-btn {
    width: 100%;
    background-color: #312e81;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}

.upgrade-btn:hover {
    background-color: #3730a3;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Header */
.top-navbar {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background-color: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
    width: 240px;
}

.search-input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px 8px 36px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.icon-btn {
    background-color: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--bg-input);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.icon-btn i,
.icon-btn svg {
    width: 18px;
    height: 18px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* Content Layout container */
.content-body {
    padding: 32px;
    flex: 1;
}

/* Premium Cards with smooth animations & performance gains */
.nexus-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.4s ease;
    will-change: transform, box-shadow, border-color;
}

.nexus-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(59, 130, 246, 0.15);
}

/* Card-Specific Neon Glows */
.card-glow-success:hover {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(16, 185, 129, 0.2) !important;
}

.card-glow-warning:hover {
    border-color: rgba(245, 124, 0, 0.5) !important;
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(245, 124, 0, 0.2) !important;
}

.card-glow-danger:hover {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(239, 68, 68, 0.2) !important;
}

.nexus-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nexus-card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Buttons Styling with active press states and hover translations */
.btn-primary {
    background: var(--accent-blue-gradient);
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-secondary {
    background-color: #27272a;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #3f3f46;
    border-color: #52525b;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(1px) scale(0.98);
}

.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Active links glow shine animation */
.sidebar-link.active {
    position: relative;
    overflow: hidden;
}

.sidebar-link.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: active-link-shine 4s infinite linear;
}

@keyframes active-link-shine {
    0% { left: -100%; }
    40% { left: 100%; }
    100% { left: 100%; }
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.open {
    border: 1px solid rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
}

.status-badge.pending {
    border: 1px solid rgba(245, 158, 11, 0.3);
    background-color: rgba(245, 158, 11, 0.05);
    color: #f59e0b;
}

.status-badge.resolved {
    border: 1px solid rgba(113, 113, 122, 0.3);
    background-color: rgba(113, 113, 122, 0.05);
    color: #71717a;
}

.priority-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.priority-indicator::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.priority-indicator.high::before {
    background-color: var(--accent-red);
}

.priority-indicator.medium::before {
    background-color: var(--accent-orange);
}

.priority-indicator.low::before {
    background-color: var(--accent-green);
}

/* Custom Input Fields */
.nexus-input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nexus-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.nexus-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

/* Form switches / Custom Toggle Switch */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #0b0a0e;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-switch .form-check-input {
    width: 44px;
    height: 22px;
    background-color: #27272a;
    border: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='%23fff' d='M9.307 14.807a4.807 4.807 0 1 1 0-9.614 4.807 4.807 0 0 1 0 9.614z'/%3e%3c/svg%3e");
    transition: background-position .15s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-color: var(--accent-blue);
    background-position: right center;
}

/* Split Pane Ticket Layout */
.ticket-panel-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media(max-width: 1024px) {
    .ticket-panel-container {
        grid-template-columns: 1fr;
    }
}

.chat-conversation-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    overflow: hidden;
}

.chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-bubble {
    display: flex;
    gap: 12px;
    max-width: 75%;
}

.message-bubble.incoming {
    align-self: flex-start;
}

.message-bubble.outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.message-text {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.message-bubble.outgoing .message-text {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    align-self: flex-end;
    margin-top: 2px;
}

.chat-notice {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin: 10px 0;
    border: 1px dashed var(--border-color);
    align-self: center;
}

.chat-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: #0d0d0f;
}

.chat-input-wrapper {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 12px;
}

.chat-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
    padding: 8px 0;
}

.chat-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.chat-action-btn:hover {
    color: var(--text-primary);
}

.chat-send-btn {
    background: var(--accent-blue-gradient);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* File Attachment Card */
.attachment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: #0b0a0e;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 8px;
    font-size: 13px;
    width: 240px;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-name {
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-size {
    font-size: 11px;
    color: var(--text-secondary);
}

.attachment-download {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Split Sidebar Cards */
.ticket-sidebar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.details-label {
    color: var(--text-secondary);
}

.details-val {
    font-weight: 600;
}

.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.quick-action-btn:hover {
    background-color: var(--bg-card-hover);
    border-color: #3f3f46;
}

/* Table styling */
.nexus-table {
    width: 100%;
    border-collapse: collapse;
}

.nexus-table th {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    text-align: left;
}

.nexus-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-primary);
}

.nexus-table tbody tr {
    transition: background-color 0.2s;
}

.nexus-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Login/Register splits layout */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
}

.auth-left-pane {
    flex: 1;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    max-width: 580px;
}

.auth-right-pane {
    flex: 1;
    background: radial-gradient(circle at 70% 30%, #1e1b4b 0%, #020205 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

@media(max-width: 992px) {
    .auth-left-pane {
        max-width: 100%;
    }
    .auth-right-pane {
        display: none;
    }
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.auth-card-centered {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
}

/* Chart preview graphic styling */
.chart-preview-card {
    background-color: #121215;
    border: 1px solid #222226;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}

.preview-browser-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2e2e33;
}

.preview-dot.red { background-color: #ef4444; }
.preview-dot.yellow { background-color: #f59e0b; }
.preview-dot.green { background-color: #10b981; }

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin: 24px 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-text:not(:empty)::before {
    margin-right: .5em;
}

.divider-text:not(:empty)::after {
    margin-left: .5em;
}

.google-auth-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.google-auth-btn:hover {
    background-color: var(--bg-card-hover);
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* Theme Icon toggles */
.theme-icon-light {
    display: none;
}
.theme-icon-dark {
    display: block;
}
[data-theme="light"] .theme-icon-light {
    display: block !important;
}
[data-theme="light"] .theme-icon-dark {
    display: none !important;
}

/* Mobil Responsive Sidebar & Layout Overrides */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0 !important;
    }
    .top-navbar {
        padding: 0 16px;
    }
    .content-body {
        padding: 16px;
    }
    .menu-toggle-btn {
        display: flex !important;
    }
    .auth-left-pane {
        padding: 40px 24px;
        max-width: 100%;
    }
    .auth-card-centered {
        padding: 32px 20px;
        margin: 20px;
    }
    .navbar-actions {
        gap: 8px !important;
    }
    .navbar-actions .search-container {
        display: none !important;
    }
    .navbar-actions .icon-btn {
        width: 34px;
        height: 34px;
    }
    .navbar-actions .icon-btn i,
    .navbar-actions .icon-btn svg {
        width: 16px;
        height: 16px;
    }
    .nexus-table th, .nexus-table td {
        padding: 12px 10px !important;
        font-size: 12px !important;
    }
    .status-badge {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
    .btn-primary, .btn-secondary, .btn-danger {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 576px) {
    .message-bubble {
        max-width: 88% !important;
        gap: 8px !important;
    }
    .message-text {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.menu-toggle-btn:hover {
    color: var(--text-primary);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

/* ==========================================
   Premium Light Mode Theme Overrides
   ========================================== */

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #ffffff;
    --border-color: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
}

/* Scrollbar overrides for light mode */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f8fafc;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Force text-white class from Bootstrap to adapt to light theme for normal texts */
[data-theme="light"] .text-white:not(.btn):not(.btn *):not(.badge):not(.badge *):not([style*="background-color"]):not(.logo-icon *):not(.alert *):not(.message-bubble.outgoing *):not(code) {
    color: var(--text-primary) !important;
}

[data-theme="light"] .text-white-50 {
    color: var(--text-secondary) !important;
}

/* Custom background/border resets for elements with hardcoded styles in light mode */
[data-theme="light"] .switch-container {
    background-color: var(--bg-card-hover) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .form-switch .form-check-input {
    background-color: #cbd5e1 !important;
}

[data-theme="light"] .form-switch .form-check-input:checked {
    background-color: var(--accent-blue) !important;
}

[data-theme="light"] .chat-footer {
    background-color: var(--bg-sidebar) !important;
    border-top: 1px solid var(--border-color) !important;
}

[data-theme="light"] .attachment-card {
    background-color: var(--bg-card-hover) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .chat-notice {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

[data-theme="light"] .nexus-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.015) !important;
}

[data-theme="light"] .btn-secondary {
    background-color: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .btn-secondary:hover {
    background-color: #cbd5e1 !important;
}

[data-theme="light"] .modal-content.bg-dark {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .modal-header {
    border-bottom-color: var(--border-color) !important;
}

[data-theme="light"] .modal-footer {
    border-top-color: var(--border-color) !important;
}

[data-theme="light"] .modal-content.bg-dark .btn-close-white {
    filter: invert(1) !important;
}

[data-theme="light"] div[style*="background-color: #0d0d0f"] {
    background-color: var(--bg-card-hover) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] div[style*="background-color: #0b0a0e"] {
    background-color: var(--bg-card-hover) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] div[style*="background-color: var(--bg-input)"] {
    background-color: var(--bg-card-hover) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] select.nexus-input {
    background-color: var(--bg-card) !important;
}

[data-theme="light"] .message-sender {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .message-bubble.incoming .message-text {
    background-color: var(--bg-card-hover) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .message-bubble.outgoing .message-text {
    background-color: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] code {
    background-color: rgba(37, 99, 235, 0.08) !important;
    color: var(--accent-blue) !important;
    padding: 2px 6px;
    border-radius: 4px;
}

[data-theme="light"] #unreadNotificationsModal .modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] #unreadNotificationsModal .modal-header h4,
[data-theme="light"] #unreadNotificationsModal .modal-body h6 {
    color: #0f172a !important;
}

[data-theme="light"] #unreadNotificationsModal .modal-body p {
    color: #4b5563 !important;
}

/* Premium smooth page load entry animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-container, 
.auth-card-centered, 
.nexus-card, 
.glass-card {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Frosted glass header bar & blurred backdrop overlays */
.top-navbar {
    background: rgba(11, 11, 14, 0.65) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

[data-theme="light"] .top-navbar {
    background: rgba(255, 255, 255, 0.65) !important;
    border-bottom-color: var(--border-color) !important;
}

/* Light theme alert contrast & text readability fixes */
[data-theme="light"] .alert-warning {
    color: #664d03 !important;
    background-color: #fff3cd !important;
    border-color: #ffe69c !important;
}
[data-theme="light"] .alert-warning h6,
[data-theme="light"] .alert-warning p,
[data-theme="light"] .alert-warning span,
[data-theme="light"] .alert-warning div {
    color: #664d03 !important;
}
[data-theme="light"] .alert-danger {
    color: #842029 !important;
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
}
[data-theme="light"] .alert-danger h6,
[data-theme="light"] .alert-danger p,
[data-theme="light"] .alert-danger span,
[data-theme="light"] .alert-danger div {
    color: #842029 !important;
}
[data-theme="light"] .alert-success {
    color: #0f5132 !important;
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
}
[data-theme="light"] .alert-success h6,
[data-theme="light"] .alert-success p,
[data-theme="light"] .alert-success span,
[data-theme="light"] .alert-success div {
    color: #0f5132 !important;
}
[data-theme="light"] .alert-info {
    color: #055160 !important;
    background-color: #cff4fc !important;
    border-color: #b6effb !important;
}
[data-theme="light"] .alert-info h6,
[data-theme="light"] .alert-info p,
[data-theme="light"] .alert-info span,
[data-theme="light"] .alert-info div {
    color: #055160 !important;
}

/* Alert Text Themes */
.alert-heading-text {
    color: #ffffff !important;
}
.alert-sub-text {
    color: rgba(255, 255, 255, 0.7) !important;
}
.alert-highlight-text {
    color: #ffffff !important;
}

[data-theme="light"] .alert-heading-text {
    color: #664d03 !important;
}
[data-theme="light"] .alert-sub-text {
    color: rgba(102, 77, 3, 0.85) !important;
}
[data-theme="light"] .alert-highlight-text {
    color: #664d03 !important;
}

/* ==========================================
   Visual Beautifications & Animations
   ========================================== */

/* 1. Staggered Chat Messages Entry Animation */
.message-bubble {
    opacity: 0;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.message-bubble:nth-child(1) { animation-delay: 0.04s; }
.message-bubble:nth-child(2) { animation-delay: 0.08s; }
.message-bubble:nth-child(3) { animation-delay: 0.12s; }
.message-bubble:nth-child(4) { animation-delay: 0.16s; }
.message-bubble:nth-child(5) { animation-delay: 0.20s; }
.message-bubble:nth-child(6) { animation-delay: 0.24s; }
.message-bubble:nth-child(7) { animation-delay: 0.28s; }
.message-bubble:nth-child(8) { animation-delay: 0.32s; }
.message-bubble:nth-child(9) { animation-delay: 0.36s; }
.message-bubble:nth-child(10) { animation-delay: 0.40s; }

/* 2. Interactive Glassmorphic Card Glow */
.ticket-sidebar-card, .nexus-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ticket-sidebar-card:hover, .nexus-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.08);
}

/* 3. Button Micro-interactions (Bounce and Compress physics) */
.btn-primary, .btn-secondary, .btn-danger, .quick-action-btn, .chat-send-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn-secondary:hover, .btn-danger:hover, .quick-action-btn:hover, .chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-primary:active, .btn-secondary:active, .btn-danger:active, .quick-action-btn:active, .chat-send-btn:active {
    transform: scale(0.97) translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



