:root {
    --bg-color: #f0f4f9;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --card-bg: #f0f4f9;
    --shadow-light: #ffffff;
    --shadow-dark: #d1d9e6;
    --accent-color: #0f2b48;
    --accent-hover: #1e3a8a;
    --primary-blue: #2563eb;
    --error-color: #ef4444;
    --success-color: #10b981;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    font-family: var(--font-family);
    color: var(--text-color);
}

/* ==========================================================================
   APP LAYOUT & SIDEBAR
   ========================================================================== */
.main-app-layout {
    display: block;
    background-color: var(--bg-color);
}

.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.left-menu {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--bg-color);
    border-right: 1px solid rgba(209, 217, 230, 0.4);
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.25rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
    padding-left: 0.25rem;
}

.brand-logo-neu {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.brand-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-action {
    margin-bottom: 1.75rem;
}

.btn-create-po {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: none;
    background: #0f2744;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 4px 4px 10px rgba(15, 39, 68, 0.35),
        -4px -4px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.btn-create-po:hover {
    background: #18375d;
    transform: translateY(-1px);
    box-shadow: 5px 5px 12px rgba(15, 39, 68, 0.4),
        -5px -5px 12px rgba(255, 255, 255, 0.9);
}

.btn-create-po:active {
    transform: translateY(1px);
}

.sidebar-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link .nav-icon {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.4);
}

.nav-link.active {
    color: #0f2744;
    font-weight: 600;
    background: var(--bg-color);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(209, 217, 230, 0.5);
}

.nav-link.text-danger-hover:hover {
    color: var(--error-color);
}

/* ==========================================================================
   CONTENT AREA & DASHBOARD PAGE
   ========================================================================== */
.content-area {
    flex: 1;
    min-width: 0;
    padding: 1.75rem 2.25rem 3rem;
}

.dashboard-page {
    max-width: 1240px;
    margin: 0 auto;
}

/* Topbar Header */
.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.topbar-search {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.topbar-search .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
}

.topbar-search-input {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 2.6rem;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-color);
    background: var(--bg-color);
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    transition: box-shadow 0.2s ease;
}

.topbar-search-input:focus {
    box-shadow: inset 5px 5px 9px var(--shadow-dark),
        inset -5px -5px 9px var(--shadow-light),
        0 0 0 2px rgba(15, 39, 68, 0.15);
}

.topbar-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: #64748b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transition: all 0.2s ease;
}

.topbar-btn:hover {
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.topbar-btn:active {
    transform: translateY(1px);
    box-shadow: inset 2px 2px 5px var(--shadow-dark),
        inset -2px -2px 5px var(--shadow-light);
}

.topbar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-user-avatar:hover {
    transform: translateY(-1px);
    box-shadow: 5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

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

.topbar-avatar-initials {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0d3880;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    letter-spacing: 0.5px;
}

.topbar-avatar-icon {
    font-size: 1.85rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.topbar-user-avatar:hover .topbar-avatar-icon {
    color: #0f172a;
}

/* Page Heading */
.dashboard-heading {
    margin-bottom: 1.75rem;
}

.page-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   METRIC STAT CARDS
   ========================================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.neu-stat-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 1.4rem 1.4rem 1.3rem;
    box-shadow: 7px 7px 14px var(--shadow-dark),
        -7px -7px 14px var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    position: relative;
    overflow: hidden;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.stat-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.blue-badge {
    background: #e0e9f8;
    color: #1e3a8a;
}

.cyan-badge {
    background: #e0f2fe;
    color: #0284c7;
}

.brown-badge {
    background: #f4eae2;
    color: #854d0e;
}

.red-badge {
    background: #ffe4e6;
    color: #e11d48;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}

.text-danger-custom {
    color: #be123c !important;
}

.stat-card-body {
    margin-top: 1rem;
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.stat-trend.positive {
    color: #0d9488;
}

.stat-trend.note {
    color: #64748b;
    font-weight: 400;
}

.critical-alert-card {
    border-left: 3px solid #dc2626;
}

.stat-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #be123c;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.stat-action-link:hover {
    color: #9f1239;
    gap: 0.55rem;
}

/* ==========================================================================
   DASHBOARD MAIN GRID (Left Table + Right Sidebar)
   ========================================================================== */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 1.75rem;
    align-items: start;
}

.neu-card {
    background: var(--bg-color);
    border-radius: 22px;
    padding: 1.75rem;
    box-shadow: 8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.neu-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--bg-color);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transition: all 0.2s ease;
}

.neu-icon-btn:hover {
    color: #0f172a;
}

/* Neumorphic Table */
.neu-table-wrapper {
    margin-bottom: 1rem;
}

.neu-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.neu-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(209, 217, 230, 0.6);
}

.neu-table tbody td {
    padding: 1.1rem 0.75rem;
    font-size: 0.85rem;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid rgba(209, 217, 230, 0.35);
}

.neu-table tbody tr:last-child td {
    border-bottom: none;
}

.incident-id {
    font-weight: 700;
    color: #0f172a;
}

.report-type {
    font-weight: 500;
}

.report-date {
    color: #64748b;
}

/* Status Badges with soft neumorphic pill look */
.badge-neu {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.status-review {
    background: #f1ebd8;
    color: #854d0e;
}

.status-critical {
    background: #ffe4e6;
    color: #be123c;
}

.status-resolved {
    background: #dbeafe;
    color: #1d4ed8;
}

.action-dots-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.action-dots-btn:hover {
    color: #0f172a;
}

.card-footer-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.view-all-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RIGHT SIDEBAR WIDGETS
   ========================================================================== */
.dashboard-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* User Activity */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.activity-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
}

.user-badge {
    background: #e2e8f0;
    color: #475569;
}

.po-badge {
    background: #e0f2fe;
    color: #0284c7;
}

.alert-badge {
    background: #ffe4e6;
    color: #e11d48;
}

.activity-details {
    display: flex;
    flex-direction: column;
}

.activity-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.activity-meta {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* Category Breakdown Chart */
.breakdown-chart-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 1.25rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.04);
}

.chart-bars-wrap {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.75rem;
}

.chart-bar-col {
    height: 100%;
    display: flex;
    align-items: flex-end;
    width: 28px;
}

.chart-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.bar-it {
    background-color: #2c4a5e;
}

.bar-office {
    background-color: #7a8b9e;
}

.bar-legal {
    background-color: #795738;
}

.bar-misc {
    background-color: #3b7188;
}

.chart-legend-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: var(--bg-color);
    padding: 0.3rem 0.65rem;
    border-radius: 12px;
    box-shadow: 2px 2px 5px var(--shadow-dark),
        -2px -2px 5px var(--shadow-light);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-it {
    background-color: #2c4a5e;
}

.dot-office {
    background-color: #7a8b9e;
}

.dot-legal {
    background-color: #795738;
}

/* ==========================================================================
   USER MANAGEMENT & FORM COMPONENTS
   ========================================================================== */
.neu-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    outline: none;
    border-radius: 14px;
    cursor: pointer;
    color: #ffffff;
    background: #0f2744;
    text-decoration: none;
    box-shadow: 5px 5px 12px var(--shadow-dark),
        -5px -5px 12px var(--shadow-light);
    transition: all 0.2s ease;
}

.neu-btn-primary:hover {
    background: #18375d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
}

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

.neu-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    outline: none;
    border-radius: 14px;
    cursor: pointer;
    color: #64748b;
    background: var(--bg-color);
    text-decoration: none;
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transition: all 0.2s ease;
}

.neu-btn-secondary:hover {
    color: #0f172a;
    box-shadow: 5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.neu-btn-secondary.neu-btn-sm,
.neu-btn-primary.neu-btn-sm,
.neu-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 11px;
    gap: 0.4rem;
}

.neu-btn-sm ion-icon {
    font-size: 1rem;
}

.neu-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    background: var(--bg-color);
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transition: all 0.2s ease;
}

.neu-btn-back:hover {
    color: #0f172a;
    transform: translateY(-1px);
}

.neu-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    transition: all 0.2s ease;
}

.neu-action-btn.edit-btn {
    color: #2563eb;
}

.neu-action-btn.delete-btn {
    color: #dc2626;
}

.neu-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.neu-action-btn.active-page {
    background: #0f2744;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.user-avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    flex-shrink: 0;
}

.user-table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 6px var(--shadow-dark),
        -2px -2px 6px var(--shadow-light);
    border: 2px solid rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.user-table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.form-container-center {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.form-card-wide {
    width: 100%;
    max-width: 680px;
}

.neu-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    background: var(--bg-color);
}

.neu-alert-success {
    color: #065f46;
    border-left: 4px solid #10b981;
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.neu-alert-danger {
    color: #991b1b;
    border-left: 4px solid #ef4444;
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

/* ==========================================================================
   LOGIN PAGE STYLES (Retained for login.php)
   ========================================================================== */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    min-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem;
    border-radius: 28px;
    background: var(--card-bg);
    box-shadow: 10px 10px 20px var(--shadow-dark),
        -10px -10px 20px var(--shadow-light);
    transition: all 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    color: var(--primary-blue);
}

.login-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.form-group-neu {
    margin-bottom: 1.5rem;
}

.form-group-neu label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    padding-left: 0.25rem;
}

.neu-input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-color);
    background: var(--card-bg);
    border: none;
    outline: none;
    border-radius: 14px;
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    transition: box-shadow 0.25s ease;
}

.neu-input:focus {
    box-shadow: inset 6px 6px 10px var(--shadow-dark),
        inset -6px -6px 10px var(--shadow-light),
        0 0 0 2px rgba(59, 130, 246, 0.2);
}

.neu-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.product-message-error {
    text-align: center;
    font-size: 0.875rem;
    color: var(--error-color);
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: inset 2px 2px 5px var(--shadow-dark),
        inset -2px -2px 5px var(--shadow-light);
}

.neu-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    outline: none;
    border-radius: 14px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(145deg, #3f8cfb, #3374dd);
    box-shadow: 5px 5px 12px var(--shadow-dark),
        -5px -5px 12px var(--shadow-light);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.neu-btn:hover {
    background: linear-gradient(145deg, #3374dd, #2b62be);
    transform: translateY(-1px);
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
}

.neu-btn:active {
    transform: translateY(1px);
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2),
        inset -3px -3px 6px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE/TABLET DRAWER NAVIGATION
   ========================================================================== */

/* Topbar Left Group */
.topbar-left-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    max-width: 520px;
}

.topbar-left-group .topbar-search {
    flex: 1;
    max-width: 100%;
}

.search-collapse-close-btn {
    display: none;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.search-collapse-close-btn:hover {
    color: var(--error-color);
}

.sidebar-close-btn {
    background: var(--bg-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    box-shadow: 3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    color: var(--error-color);
    transform: scale(1.05);
}

.sidebar-close-btn:active {
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

/* Sidebar Backdrop for Mobile/Tablet */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

body.sidebar-active-lock {
    overflow: hidden;
}

/* Large Tablets & Small Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
    .content-area {
        padding: 1.5rem 1.75rem 2.5rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .dashboard-main-grid {
        grid-template-columns: 1.6fr 1fr;
        gap: 1.25rem;
    }

    .neu-stat-card {
        min-height: 155px;
        padding: 1.25rem;
    }
}

/* Medium Tablets & Below (max-width: 991.98px) - Drawer Sidebar & Collapsed Search */
@media (max-width: 991.98px) {
    .app-layout {
        position: relative;
        min-height: 100vh;
    }

    .sidebar-backdrop {
        display: block;
    }

    .left-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        width: 280px;
        max-width: 85vw;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 25px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: var(--bg-color);
    }

    .left-menu.sidebar-open {
        transform: translateX(0);
    }

    .content-area {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 1.25rem 2.5rem;
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-topbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        position: relative;
        width: 100%;
    }

    .topbar-left-group {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        max-width: none;
    }

    .topbar-actions {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        flex: 0 0 auto;
    }

    /* Collapse Search Bar into Modal/Overlay on Tablet/Mobile */
    .topbar-left-group .topbar-search {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        z-index: 1020;
        background: var(--bg-color);
        border-radius: 30px;
        box-shadow: 4px 4px 12px var(--shadow-dark),
            -4px -4px 12px var(--shadow-light);
        align-items: center;
        padding-right: 2.8rem;
    }

    .topbar-left-group .topbar-search.search-expanded {
        display: flex;
        animation: searchFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .search-collapse-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-search.search-expanded .topbar-search-input {
        box-shadow: none;
        background: transparent;
        padding-right: 2.5rem;
        height: 100%;
    }
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Small Tablets & Large Phones (max-width: 767.98px) */
@media (max-width: 767.98px) {
    .content-area {
        padding: 1rem 0.85rem 2rem;
    }

    .dashboard-heading {
        margin-bottom: 1.25rem;
    }

    .page-title {
        font-size: 1.45rem;
    }

    .page-subtitle {
        font-size: 0.82rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .neu-stat-card {
        padding: 1.15rem;
        min-height: 140px;
    }

    .neu-card {
        padding: 1.25rem 1rem;
        border-radius: 18px;
    }

    .dashboard-topbar {
        margin-bottom: 1.25rem;
    }

    .topbar-actions {
        gap: 0.65rem;
    }

    .topbar-btn {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .topbar-user-avatar {
        width: 40px;
        height: 40px;
    }

    /* Forms */
    .form-card-wide,
    .form-card-narrow {
        padding: 1.35rem 1rem;
    }

    .form-group-neu {
        margin-bottom: 1.15rem;
    }

    .neu-input,
    .neu-select,
    .neu-textarea {
        font-size: 0.875rem;
        padding: 0.75rem 0.95rem;
    }

    .neu-btn-primary,
    .neu-btn-secondary,
    .neu-btn-back {
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }

    /* Map on Mobile */
    #establishmentMap {
        height: 280px;
    }

    .map-helper-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .map-helper-toolbar .d-flex {
        flex-wrap: wrap;
    }

    .map-action-btn,
    .map-hint-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.65rem;
    }

    /* Login Page */
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.35rem;
        border-radius: 22px;
        width: 100%;
        max-width: 100%;
    }

    .login-title {
        font-size: 1.35rem;
    }

    .login-icon-wrapper {
        width: 58px;
        height: 58px;
        margin-bottom: 1rem;
    }

    .login-icon-wrapper svg {
        width: 28px;
        height: 28px;
    }

    /* Modals */
    .modal-neu .modal-content {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .icon-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.6rem;
        max-height: 280px;
    }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .dashboard-topbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .topbar-left-group {
        order: unset;
        width: auto;
    }

    .topbar-actions {
        order: unset;
        width: auto;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .topbar-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .topbar-user-avatar {
        width: 38px;
        height: 38px;
    }

    .neu-table thead th,
    .neu-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.78rem;
    }

    .badge-neu {
        padding: 0.25rem 0.55rem;
        font-size: 0.7rem;
    }

    .action-btn-group {
        gap: 0.25rem;
    }

    .neu-table-action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   SWEETALERT2 NEUMORPHIC STYLING
   ========================================================================== */
.swal2-container {
    z-index: 999999 !important;
}

.neu-swal-popup {
    z-index: 1000000 !important;
    border-radius: 24px !important;
    background: var(--bg-color) !important;
    box-shadow: 12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light) !important;
    font-family: var(--font-family) !important;
    padding: 2rem !important;
    max-width: 92vw !important;
}

.neu-swal-popup .swal2-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
    padding: 0.5rem 0.5rem 0 !important;
    word-break: break-word !important;
}

.neu-swal-popup .swal2-html-container {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin: 0.75rem 0 0 !important;
    word-break: break-word !important;
}

.neu-swal-popup .swal2-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    width: auto !important;
    margin-top: 1.25rem !important;
    flex-wrap: wrap !important;
}

.neu-swal-btn {
    border-radius: 10px !important;
    padding: 0.6rem 1.35rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    background: #0f2744 !important;
    color: #ffffff !important;
    box-shadow: 3px 3px 7px rgba(15, 39, 68, 0.3),
        -3px -3px 7px var(--shadow-light) !important;
    border: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

.neu-swal-btn:hover {
    background: #091a2e !important;
    transform: translateY(-1px) !important;
    box-shadow: 4px 4px 10px rgba(15, 39, 68, 0.4),
        -4px -4px 8px var(--shadow-light) !important;
}

.neu-swal-btn-danger {
    border-radius: 10px !important;
    padding: 0.6rem 1.35rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 3px 3px 7px rgba(220, 38, 38, 0.35),
        -3px -3px 7px var(--shadow-light) !important;
    border: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

.neu-swal-btn-danger:hover {
    background: #b91c1c !important;
    transform: translateY(-1px) !important;
}

/* SweetAlert2 Mobile Specific Responsive Adaptations */
@media (max-width: 480px) {
    .neu-swal-popup {
        padding: 1.5rem 1.15rem !important;
        border-radius: 20px !important;
        width: 92% !important;
    }

    .neu-swal-popup .swal2-icon {
        transform: scale(0.85) !important;
        margin: 0.25rem auto 0.75rem !important;
    }

    .neu-swal-popup .swal2-title {
        font-size: 1.15rem !important;
        padding: 0.25rem 0.25rem 0 !important;
    }

    .neu-swal-popup .swal2-html-container {
        font-size: 0.86rem !important;
        line-height: 1.5 !important;
        margin: 0.5rem 0 0 !important;
    }

    .neu-swal-popup .swal2-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 0.6rem !important;
        margin-top: 1.15rem !important;
        flex-wrap: wrap !important;
    }

    .neu-swal-popup .swal2-actions button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 90px !important;
        margin: 0 !important;
        padding: 0.55rem 1.15rem !important;
        font-size: 0.82rem !important;
        min-height: 38px !important;
    }
}

/* ==========================================================================
   NEUMORPHIC ICON PICKER MODAL
   ========================================================================== */
.icon-picker-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.icon-preview-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1e3a8a;
    flex-shrink: 0;
}

.btn-choose-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    border: none;
    background: var(--bg-color);
    color: #1e3a8a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-choose-icon:hover {
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.btn-choose-icon:active {
    transform: translateY(1px);
}

.modal-neu .modal-content {
    background-color: var(--bg-color);
    border-radius: 24px;
    border: none;
    box-shadow: 14px 14px 28px var(--shadow-dark),
        -14px -14px 28px var(--shadow-light);
    padding: 1rem;
}

.modal-neu .modal-header {
    border-bottom: 1px solid rgba(209, 217, 230, 0.6);
    padding-bottom: 1rem;
}

.modal-neu .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.modal-neu .modal-footer {
    border-top: 1px solid rgba(209, 217, 230, 0.6);
    padding-top: 1rem;
}

.icon-category-filter {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.icon-cat-btn {
    border: none;
    background: var(--bg-color);
    color: #64748b;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 2px 2px 5px var(--shadow-dark),
        -2px -2px 5px var(--shadow-light);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.icon-cat-btn.active,
.icon-cat-btn:hover {
    color: #ffffff;
    background: #0f2744;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.icon-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.85rem;
    max-height: 380px;
    overflow-y: auto;
    padding: 0.5rem;
}

.icon-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem;
    border-radius: 14px;
    background: var(--bg-color);
    box-shadow: 3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.icon-grid-item ion-icon {
    font-size: 1.6rem;
    color: #1e3a8a;
    margin-bottom: 0.35rem;
    transition: transform 0.2s ease;
}

.icon-grid-item .icon-item-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    max-width: 100%;
}

.icon-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 11px var(--shadow-dark),
        -5px -5px 11px var(--shadow-light);
}

.icon-grid-item:hover ion-icon {
    transform: scale(1.15);
    color: #2563eb;
}

.icon-grid-item.selected {
    border-color: #2563eb;
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

/* ==========================================================================
   NEUMORPHIC LEAFLET MAP PICKER
   ========================================================================== */
.map-picker-wrapper {
    position: relative;
    border-radius: 18px;
    padding: 6px;
    background: var(--bg-color);
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

#establishmentMap {
    width: 100%;
    height: 380px;
    border-radius: 14px;
    z-index: 1;
}

.map-helper-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.map-hint-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #475569;
    background: var(--bg-color);
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    box-shadow: 2px 2px 4px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light);
}

.map-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e3a8a;
    background: var(--bg-color);
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px 5px var(--shadow-dark),
        -2px -2px 5px var(--shadow-light);
    transition: all 0.2s ease;
}

.map-action-btn:hover {
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
}

.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    background: var(--bg-color) !important;
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light) !important;
    color: #0f172a !important;
    font-family: var(--font-family) !important;
    font-size: 0.82rem !important;
}

.leaflet-popup-tip {
    background: var(--bg-color) !important;
}

/* Leaflet Layers Control Styling */
.leaflet-control-layers {
    border-radius: 12px !important;
    background: var(--bg-color) !important;
    border: none !important;
    box-shadow: 4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light) !important;
    font-family: var(--font-family) !important;
    font-size: 0.8rem !important;
    color: #1e293b !important;
    padding: 0.5rem 0.75rem !important;
}

.leaflet-control-layers-expanded {
    padding: 0.6rem 0.85rem !important;
}

.leaflet-control-layers-base label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.leaflet-control-layers-base input[type="radio"] {
    cursor: pointer;
    accent-color: #2563eb;
}

/* ==========================================================================
   MOBILE APP NEUMORPHIC CAPTURE SCREEN & BOTTOM NAVIGATION
   ========================================================================== */
.app-mobile-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    padding: 2rem 1.5rem 1rem;
}

/* Central Hero Section */
.app-capture-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 460px;
    margin: auto 0;
    text-align: center;
}

/* Outermost Soft Neumorphic Halo / Wrapper */
.capture-halo-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.75rem;
    position: relative;
}

/* Pure Neumorphic Recessed Button Bed (Blends directly into canvas) */
.capture-neumorphic-frame {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: 12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light),
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}

/* Core Neumorphic Capture Button (Elevated Blue Neumorphism) */
.btn-capture-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e6bd6, #1452a7);
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 6px 6px 14px rgba(20, 82, 167, 0.45),
        -4px -4px 10px rgba(255, 255, 255, 0.65);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    animation: capturePulse 2.8s ease-in-out infinite;
}

/* Pulse Ripple Waves */
.btn-capture-core::before,
.btn-capture-core::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.btn-capture-core::before {
    box-shadow: 0 0 0 0 rgba(30, 107, 214, 0.65);
    animation: pulseRing 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.btn-capture-core::after {
    box-shadow: 0 0 0 0 rgba(30, 107, 214, 0.4);
    animation: pulseRing 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0.8s infinite;
}

.btn-capture-core:hover {
    transform: scale(1.04);
    color: #ffffff;
    box-shadow: 8px 8px 20px rgba(20, 82, 167, 0.6),
        -5px -5px 14px rgba(255, 255, 255, 0.8);
}

.btn-capture-core:active {
    transform: scale(0.96);
    background: linear-gradient(145deg, #1452a7, #1e6bd6);
    box-shadow: inset 4px 4px 8px rgba(10, 45, 95, 0.6),
        inset -3px -3px 6px rgba(255, 255, 255, 0.2);
}

/* Text Captions / Tagline Container */
.app-tagline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.app-tagline-sub {
    font-size: 1.05rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.45rem;
    line-height: 1.4;
    letter-spacing: 0.1px;
}

.app-tagline-main {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.35;
}

/* Bottom Neumorphic Navigation Bar */
.app-bottom-nav-wrap {
    width: 100%;
    max-width: 480px;
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.app-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.85rem 1rem;
    border-radius: 30px;
    background: var(--bg-color);
    box-shadow: 8px 8px 20px var(--shadow-dark),
        -8px -8px 20px var(--shadow-light);
}

.app-nav-item {
    flex: 1;
    max-width: 120px;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

/* Recessed Inset Effect for Active Tab ("Capture") */
.app-nav-item.active {
    color: #1d68cd;
    background: var(--bg-color);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.app-nav-item:not(.active):hover {
    color: #0f172a;
    transform: translateY(-1px);
}

.app-nav-item:not(.active):active {
    box-shadow: inset 2px 2px 5px var(--shadow-dark),
        inset -2px -2px 5px var(--shadow-light);
}

@keyframes capturePulse {
    0% {
        transform: scale(1);
        box-shadow: 6px 6px 14px rgba(20, 82, 167, 0.45),
            -4px -4px 10px rgba(255, 255, 255, 0.65);
    }

    50% {
        transform: scale(1.055);
        box-shadow: 10px 10px 32px rgba(30, 107, 214, 0.7),
            -8px -8px 24px rgba(255, 255, 255, 0.95);
    }

    100% {
        transform: scale(1);
        box-shadow: 6px 6px 14px rgba(20, 82, 167, 0.45),
            -4px -4px 10px rgba(255, 255, 255, 0.65);
    }
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 107, 214, 0.65);
        opacity: 0.9;
    }

    60% {
        box-shadow: 0 0 0 75px rgba(30, 107, 214, 0.12);
        opacity: 0.5;
    }

    100% {
        box-shadow: 0 0 0 110px rgba(30, 107, 214, 0);
        opacity: 0;
    }
}

@keyframes gentlePulse {
    0% {
        transform: scale(0.98);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.02);
        opacity: 1;
    }
}

/* Responsive adjustments for smaller phone viewports */
@media (max-height: 700px) {
    .capture-halo-outer {
        width: 270px;
        height: 270px;
        margin-bottom: 1.5rem;
    }

    .capture-ring-middle {
        width: 180px;
        height: 180px;
    }

    .app-tagline-main {
        font-size: 1.15rem;
    }

    .app-tagline-sub {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   NEUMORPHIC CAMERA VIEWFINDER & CONTROLS INTERFACE
   ========================================================================== */
.camera-view-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.camera-view-screen.active {
    display: flex;
    opacity: 1;
}

/* Video/Stream Viewfinder Canvas Container */
.camera-viewfinder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background-color: #000000;
}

#cameraVideoFeed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Top Floating Bar: Back/Close & Status */
.camera-top-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, rgba(240, 244, 249, 0.72) 0%, rgba(240, 244, 249, 0.42) 65%, rgba(240, 244, 249, 0.05) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.camera-back-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    color: #1e293b;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15),
        -4px -4px 10px rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
}

.camera-back-btn:active {
    transform: scale(0.95);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.15),
        inset -2px -2px 5px rgba(255, 255, 255, 0.85);
}

.camera-mode-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    background: var(--bg-color);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15),
        -3px -3px 8px rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.camera-mode-pill.recording {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    box-shadow: inset 2px 2px 5px rgba(220, 38, 38, 0.2),
        inset -2px -2px 5px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc2626;
    animation: recordingPulse 1s infinite alternate ease-in-out;
}

@keyframes recordingPulse {
    0% {
        opacity: 0.3;
        transform: scale(0.85);
    }
    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Bottom Neumorphic Control Deck */
.camera-bottom-deck {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.25rem 2.25rem;
    background: linear-gradient(0deg, rgba(240, 244, 249, 0.90) 0%, rgba(240, 244, 249, 0.65) 60%, rgba(240, 244, 249, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    width: 100%;
}

/* 1. Neumorphic Hollow Circular Shutter Button - Minimal & Compact */
.shutter-outer-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: 5px 5px 14px rgba(0, 0, 0, 0.16),
        -5px -5px 14px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.shutter-outer-ring:active {
    transform: scale(0.92);
}

.shutter-inner-aperture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shutter-inner-core {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: 2px 2px 5px var(--shadow-dark),
        -2px -2px 5px var(--shadow-light);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Video Mode: Shutter core turns Red */
.shutter-outer-ring.video-mode .shutter-inner-core {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    box-shadow: 2px 2px 8px rgba(220, 38, 38, 0.45),
        -2px -2px 6px rgba(255, 255, 255, 0.8);
}

/* Recording Video: Transforms into a square stop recording button */
.shutter-outer-ring.recording .shutter-inner-core {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    border-radius: 8px;
    width: 24px;
    height: 24px;
    animation: recordingPulse 1.5s infinite;
}

@keyframes recordingPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.92);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 2. Aligned Bottom Actions Bar: Flash (Left) - Mode Toggle (Center) - Flip Camera (Right) */
.camera-bottom-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 380px;
    gap: 0.65rem;
    padding: 0 0.25rem;
}

/* 3. Neumorphic VIDEO / PHOTO Segmented Toggle Switch - Sliding Switch Effect */
.camera-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    max-width: 195px;
    height: 42px;
    padding: 3px;
    border-radius: 24px;
    background: var(--bg-color);
    box-shadow: 4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sliding Inset Pill Indicator */
.camera-mode-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: calc(50% - 3px);
    border-radius: 20px;
    background: var(--bg-color);
    box-shadow: inset 2.5px 2.5px 5px var(--shadow-dark),
        inset -2.5px -2.5px 5px var(--shadow-light);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Photo active: indicator is on the right side */
.camera-mode-toggle.is-photo::before {
    transform: translateX(calc(100% - 1px));
}

/* Video active: indicator is on the left side with subtle red ambient tint */
.camera-mode-toggle.is-video::before {
    transform: translateX(0);
    box-shadow: inset 2.5px 2.5px 6px rgba(220, 38, 38, 0.25),
        inset -2.5px -2.5px 6px var(--shadow-light);
}

.mode-toggle-btn {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.6px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Text transitions when active */
.camera-mode-toggle.is-photo .mode-toggle-btn#btnModePhoto {
    color: #0d3880;
}

.camera-mode-toggle.is-video .mode-toggle-btn#btnModeVideo {
    color: #dc2626;
    /* Smooth fade to red in Video mode */
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.camera-action-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    color: #1e293b;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.camera-action-circle-btn:hover {
    color: #0f172a;
    transform: translateY(-1px);
}

.camera-action-circle-btn:active {
    transform: scale(0.94);
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

.camera-action-circle-btn.flash-on {
    color: #f59e0b;
}

/* Camera Preview Flash Effect */
.camera-flash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.15s ease-out;
}

.camera-flash-overlay.flashing {
    opacity: 0.95;
}

/* ==========================================================================
   CAMERA MEDIA PREVIEW SCREEN (RETAKE & NEXT BUTTONS)
   ========================================================================== */
.camera-preview-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.camera-preview-screen.active {
    display: flex;
    opacity: 1;
}

.media-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewCapturedImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#previewRecordedVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* Preview Actions Footer Deck: Retake & Next */
.preview-actions-footer {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 2.25rem;
    background: linear-gradient(0deg, rgba(240, 244, 249, 0.92) 0%, rgba(240, 244, 249, 0.65) 60%, rgba(240, 244, 249, 0.05) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    width: 100%;
}

.btn-preview-retake {
    flex: 1;
    height: 52px;
    border-radius: 26px;
    background: var(--bg-color);
    border: none;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 5px 5px 12px var(--shadow-dark),
        -5px -5px 12px var(--shadow-light);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.btn-preview-retake:active {
    transform: scale(0.96);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.btn-preview-next {
    flex: 1.2;
    height: 52px;
    border-radius: 26px;
    background: var(--bg-color);
    border: none;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    color: #0d3880;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.btn-preview-next:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 18px var(--shadow-dark),
        -8px -8px 18px var(--shadow-light);
}

.btn-preview-next:active {
    transform: scale(0.96);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

/* ==========================================================================
   SCREEN 3: INCIDENT TYPE SELECTION GRID (REPLICATING MOCKUP)
   ========================================================================== */
.incident-selection-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 10010;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2.25rem 1.5rem 1.5rem;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.incident-selection-screen.active {
    display: flex;
    opacity: 1;
}

.selection-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
    gap: 0.75rem;
}

.selection-top-bar .camera-back-btn {
    flex-shrink: 0;
}

.selection-header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
}

.selection-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin: 0;
    text-align: center;
    flex: 1;
}

/* 2-Column Neumorphic Card Grid */
.incident-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

/* Neumorphic Incident Card Item - Adjusted Proportional Height */
.incident-card-item {
    min-height: 110px;
    height: 120px;
    border-radius: 20px;
    background: var(--bg-color);
    border: none;
    outline: none;
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    user-select: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.incident-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 18px var(--shadow-dark),
        -8px -8px 18px var(--shadow-light);
}

/* Inset Selected State for Multiple Select */
.incident-card-item.selected {
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    border: 1.5px solid rgba(13, 56, 128, 0.25);
    background: linear-gradient(145deg, #e8edf5, #f0f4f9);
}

.incident-card-icon {
    font-size: 1.85rem;
    color: #0d3880;
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.incident-card-item:hover .incident-card-icon {
    transform: scale(1.06);
}

.incident-card-label {
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.1px;
}

.incident-card-item.selected .incident-card-label {
    color: #0d3880;
}

/* Multi-select checkmark badge */
.incident-card-item .selected-badge {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d3880;
    color: #ffffff;
    font-size: 0.75rem;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.incident-card-item.selected .selected-badge {
    display: flex;
}

/* Full Width Bottom Next Button */
.selection-bottom-footer {
    width: 100%;
    max-width: 440px;
    margin: auto auto 0;
    padding-top: 0.5rem;
}

.btn-selection-next {
    width: 100%;
    height: 56px;
    border-radius: 28px;
    background: var(--bg-color);
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d3880;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 8px 8px 20px var(--shadow-dark),
        -8px -8px 20px var(--shadow-light);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.btn-selection-next:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 24px var(--shadow-dark),
        -10px -10px 24px var(--shadow-light);
}

.btn-selection-next:active {
    transform: scale(0.97);
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.btn-selection-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   SCREEN 5: LOCATION & REMARKS (REPLICATING IMAGE MOCKUP)
   ========================================================================== */
.location-remarks-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 10020;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-remarks-screen.active {
    display: flex;
    opacity: 1;
}

.screen5-content-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 1. Neumorphic Map Preview Container with Floating Location Pill */
.neu-map-card {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 26px;
    background: var(--bg-color);
    box-shadow: 8px 8px 20px var(--shadow-dark),
        -8px -8px 20px var(--shadow-light);
    overflow: hidden;
    padding: 0;
}

#locationPinMap {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    z-index: 1;
}

/* Floating Pin Current Location Button */
.btn-recenter-location {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(240, 244, 249, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.18),
        -3px -3px 8px rgba(255, 255, 255, 0.9);
    color: #0d3880;
    font-size: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.btn-recenter-location.visible {
    display: flex;
}

.btn-recenter-location:hover {
    transform: scale(1.06);
    color: #1d68cd;
}

.btn-recenter-location:active {
    transform: scale(0.94);
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

/* Floating Glassmorphic Location Pill on the Map */
.floating-location-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.1rem;
    border-radius: 20px;
    background: rgba(240, 244, 249, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15),
        -3px -3px 10px rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.floating-location-pill ion-icon {
    font-size: 1.4rem;
    color: #1d68cd;
    flex-shrink: 0;
}

.location-address-text {
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2. Remarks (Pahayag) Section */
.remarks-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.remarks-label {
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.2px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.remarks-label .required-star {
    color: #dc2626;
    font-size: 1rem;
}

.remarks-textarea-wrap {
    width: 100%;
    border-radius: 22px;
    background: var(--bg-color);
    box-shadow: inset 4px 4px 10px var(--shadow-dark),
        inset -4px -4px 10px var(--shadow-light);
    padding: 0.25rem;
    transition: box-shadow 0.2s ease, border 0.2s ease;
}

.remarks-textarea-wrap.invalid {
    box-shadow: inset 4px 4px 10px rgba(220, 38, 38, 0.25),
        inset -4px -4px 10px var(--shadow-light),
        0 0 0 2px rgba(220, 38, 38, 0.6);
}

.neu-remarks-textarea {
    width: 100%;
    min-height: 160px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.85rem 1rem;
    font-family: var(--font-family);
    font-size: 0.92rem;
    font-weight: 500;
    color: #1e293b;
    resize: none;
    line-height: 1.5;
}

.neu-remarks-textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & SAFE AREA ADAPTATIONS (SCREENS 1 - 5)
   ========================================================================== */
@media (max-width: 480px) {
    /* Screen 1: Home */
    .app-mobile-container {
        padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(1rem, env(safe-area-inset-bottom));
    }

    /* Screen 2: Camera */
    .camera-top-bar {
        padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.5rem;
    }

    .camera-bottom-deck {
        padding: 0.85rem 1rem max(1.25rem, env(safe-area-inset-bottom));
        gap: 0.75rem;
    }

    .shutter-outer-ring {
        width: 66px;
        height: 66px;
    }

    /* Screen 3: Media Preview */
    .preview-top-bar {
        padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.5rem;
    }

    .preview-bottom-deck {
        padding: 0.85rem 1rem max(1.25rem, env(safe-area-inset-bottom));
    }

    /* Screen 4: Incident Selection */
    .incident-selection-screen {
        padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    }

    .incident-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .incident-card-item {
        height: 110px;
        min-height: 100px;
        padding: 0.75rem 0.5rem;
        border-radius: 18px;
    }

    .incident-card-icon {
        font-size: 1.65rem;
    }

    .incident-card-label {
        font-size: 0.78rem;
    }

    /* Screen 5: Location & Remarks */
    .location-remarks-screen {
        padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
    }

    .screen5-content-wrap {
        gap: 1.25rem;
    }

    .neu-map-card {
        height: 320px;
        border-radius: 22px;
    }

    #locationPinMap {
        border-radius: 22px;
    }

    .floating-location-pill {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 0.65rem 1rem;
        border-radius: 20px;
    }

    .location-address-text {
        font-size: 0.85rem;
    }

    .neu-remarks-textarea {
        min-height: 190px;
        padding: 1rem 1.15rem;
        font-size: 0.95rem;
    }

    .btn-selection-next {
        height: 54px;
        font-size: 1.05rem;
    }
}

/* Small / Compact mobile screens (e.g. iPhone SE / height <= 680px) */
@media (max-height: 680px) {
    .capture-halo-outer {
        width: 230px;
        height: 230px;
        margin-bottom: 1rem;
    }

    .app-tagline-main {
        font-size: 1.05rem;
    }

    .app-tagline-sub {
        font-size: 0.85rem;
    }

    .incident-selection-subtitle {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .incident-card-item {
        height: 95px;
        min-height: 90px;
        gap: 0.4rem;
    }

    .incident-card-icon {
        font-size: 1.5rem;
    }

    .neu-map-card {
        height: 260px;
    }

    .neu-remarks-textarea {
        min-height: 150px;
    }

    .btn-selection-next {
        height: 50px;
    }
}

/* ==========================================================================
   INCIDENT REPORT MODULE & LIGHTBOX STYLING (APP/REPORT)
   ========================================================================== */
.app-reports-container {
    width: 100vw;
    min-height: 100vh;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
    box-sizing: border-box;
}

.reports-list-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    flex: 1;
    padding-bottom: 5.5rem;
}

/* Top Header Bar */
.reports-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.25rem 0.5rem;
}

.reports-header-title {
    font-family: var(--font-family);
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
    margin: 0;
}

.reports-count-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: var(--bg-color);
    box-shadow: 3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0d3880;
}

/* Neumorphic Report Card Item (Matching Mockup) */
.neu-report-card {
    width: 100%;
    border-radius: 22px;
    background: var(--bg-color);
    box-shadow: 7px 7px 18px var(--shadow-dark),
        -7px -7px 18px var(--shadow-light);
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.neu-report-card:hover {
    transform: translateY(-2px);
    box-shadow: 9px 9px 22px var(--shadow-dark),
        -9px -9px 22px var(--shadow-light);
}

.neu-report-card:active {
    transform: scale(0.98);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

/* Card Thumbnail / Media Preview Box */
.report-card-thumb-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--bg-color);
    box-shadow: inset 2.5px 2.5px 5px var(--shadow-dark),
        inset -2.5px -2.5px 5px var(--shadow-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 3px;
}

.report-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
    display: block;
}

.report-card-thumb-fallback {
    width: 100%;
    height: 100%;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d3880;
    font-size: 1.6rem;
    background: rgba(13, 56, 128, 0.05);
}

/* Card Info Area */
.report-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-card-title {
    font-family: var(--font-family);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d3880;
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-card-code {
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-card-date {
    font-family: var(--font-family);
    font-size: 0.76rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
}

/* Pill Badges matching Mockup States */
.report-status-pill {
    padding: 0.35rem 0.95rem;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    flex-shrink: 0;
    background: var(--bg-color);
    box-shadow: 3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Status 1: Sent (Default / New report) */
.status-sent {
    color: #0d3880;
}

/* Status 2: Reviewed */
.status-reviewed {
    color: #b45309;
}

/* Status 3: Acknowledged */
.status-acknowledged {
    color: #047857;
}

/* Status 4: Ignored */
.status-ignored {
    color: #dc2626;
}

/* Empty State */
.reports-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    gap: 1rem;
}

.reports-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: inset 4px 4px 10px var(--shadow-dark),
        inset -4px -4px 10px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #94a3b8;
}

.reports-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.reports-empty-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    max-width: 260px;
    line-height: 1.45;
}

/* Fixed Floating Bottom Navigation */
.fixed-bottom-nav-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.75rem 1.25rem max(1rem, env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(240, 244, 249, 0.95) 0%, rgba(240, 244, 249, 0.8) 60%, rgba(240, 244, 249, 0) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.fixed-bottom-nav-wrap .app-bottom-nav {
    width: 100%;
    max-width: 480px;
}

/* Full View Lightbox Modal Overlay (Photo & Video) */
.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 18, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close-btn {
    position: absolute;
    top: max(1.25rem, env(safe-area-inset-top));
    right: 1.25rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000005;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08) rotate(90deg);
}

.lightbox-close-btn:active {
    transform: scale(0.92);
}

.lightbox-content-wrap {
    max-width: 94vw;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-image,
.lightbox-video {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.88) translateY(12px);
    transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.25);
    user-select: none;
}

.image-lightbox-overlay.active .lightbox-image,
.image-lightbox-overlay.active .lightbox-video {
    transform: scale(1) translateY(0);
}

.lightbox-caption-pill {
    position: relative;
    margin-top: 1.15rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.image-lightbox-overlay.active .lightbox-caption-pill {
    transform: translateY(0);
    opacity: 1;
}

/* Detail Modal Media Preview Container */
.report-media-preview-container {
    position: relative;
    margin: 0.85rem 0 0.4rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.report-media-preview-container:hover {
    transform: translateY(-2px);
    box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.22);
}

.report-media-preview-container:active {
    transform: scale(0.98);
}

.report-media-preview-container:hover .media-expand-hint {
    opacity: 1;
    transform: translateY(0);
}

.media-expand-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.92;
    transform: translateY(0);
    transition: all 0.25s ease;
}

.media-expand-hint ion-icon {
    font-size: 1rem;
}

/* ==========================================================================
   ADMIN INCIDENT REPORT MODULE NEUMORPHIC STYLING (REPORT/)
   ========================================================================== */
/* Stat Summary Filter Cards */
.stat-card {
    background: var(--bg-color);
    box-shadow: 6px 6px 16px var(--shadow-dark),
        -6px -6px 16px var(--shadow-light);
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    text-decoration: none;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 20px var(--shadow-dark),
        -8px -8px 20px var(--shadow-light);
}

.stat-card.neu-active-filter {
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    border: 1.5px solid #0f2744;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-color);
    box-shadow: 3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-family);
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

/* Neumorphic Status Badges */
.badge-neu.status-sent {
    background: var(--bg-color);
    color: #0d3880;
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
}

.badge-neu.status-reviewed {
    background: var(--bg-color);
    color: #b45309;
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
}

.badge-neu.status-acknowledged {
    background: var(--bg-color);
    color: #047857;
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
}

.badge-neu.status-ignored {
    background: var(--bg-color);
    color: #dc2626;
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
}

/* Neumorphic Media Evidence & Thumbnail Containers */
.admin-report-media-thumb {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-color);
    box-shadow: inset 2.5px 2.5px 5px var(--shadow-dark),
        inset -2.5px -2.5px 5px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 3px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-report-media-thumb:hover {
    transform: scale(1.08);
    box-shadow: 3px 3px 8px var(--shadow-dark),
        -3px -3px 8px var(--shadow-light);
}

.admin-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
}

.admin-thumb-video-icon {
    font-size: 1.4rem;
    color: #0d3880;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Evidence Container (Detail Page) */
.report-evidence-box {
    border-radius: 18px;
    background: var(--bg-color);
    box-shadow: inset 3px 3px 7px var(--shadow-dark),
        inset -3px -3px 7px var(--shadow-light);
    padding: 10px;
    overflow: hidden;
}

.evidence-image-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evidence-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

.evidence-video-container video {
    width: 100%;
    max-height: 420px;
    border-radius: 14px;
    background: #0f172a;
    display: block;
}

/* Detail Map Inset Frame */
.neu-detail-map-wrapper {
    box-shadow: inset 3.5px 3.5px 7px var(--shadow-dark),
        inset -3.5px -3.5px 7px var(--shadow-light);
    padding: 8px;
    border-radius: 20px;
    background: var(--bg-color);
}

/* Inset Neumorphic Remarks Well */
.neu-remarks-well {
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    background: var(--bg-color);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
    font-size: 0.92rem;
    line-height: 1.6;
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Neumorphic Incident Tag Pills */
.neu-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.95rem;
    border-radius: 14px;
    background: var(--bg-color);
    box-shadow: 3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.neu-tag-pill ion-icon {
    font-size: 1.15rem;
    color: #0d3880;
}

/* Neumorphic Table Action Buttons (View/Edit) */
.neu-btn-action {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: 3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d3880;
    font-size: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.neu-btn-action:hover {
    color: #091a2e;
    transform: translateY(-2px);
    box-shadow: 5px 5px 12px var(--shadow-dark),
        -5px -5px 12px var(--shadow-light);
}

.neu-btn-action:active {
    transform: scale(0.94);
    box-shadow: inset 2.5px 2.5px 5px var(--shadow-dark),
        inset -2.5px -2.5px 5px var(--shadow-light);
}

/* Neumorphic Custom Workflow Action Buttons */
.neu-btn-action-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    color: #047857;
    background: var(--bg-color);
    box-shadow: 4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    border: 1px solid rgba(4, 120, 87, 0.2);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-decoration: none;
}

.neu-btn-action-success:hover {
    color: #065f46;
    transform: translateY(-2px);
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
}

.neu-btn-action-success:active {
    transform: scale(0.98);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.neu-btn-action-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    color: #dc2626;
    background: var(--bg-color);
    box-shadow: 4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    border: 1px solid rgba(220, 38, 38, 0.2);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-decoration: none;
}

.neu-btn-action-danger:hover {
    color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
}

.neu-btn-action-danger:active {
    transform: scale(0.98);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.neu-btn-action-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    color: #b45309;
    background: var(--bg-color);
    box-shadow: 4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    border: 1px solid rgba(180, 83, 9, 0.2);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-decoration: none;
}

.neu-btn-action-warning:hover {
    color: #92400e;
    transform: translateY(-2px);
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
}

.neu-btn-action-warning:active {
    transform: scale(0.98);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

/* Neumorphic Lifecycle Timeline */
.report-timeline {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.report-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 3px;
    background: var(--bg-color);
    box-shadow: inset 1px 1px 2px var(--shadow-dark),
        inset -1px -1px 2px var(--shadow-light);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: 2.5px 2.5px 5px var(--shadow-dark),
        -2.5px -2.5px 5px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.timeline-dot.dot-primary::after {
    background: #0d3880;
}

.timeline-dot.dot-warning::after {
    background: #b45309;
}

.timeline-dot.dot-success::after {
    background: #047857;
}

.timeline-dot.dot-danger::after {
    background: #dc2626;
}

.timeline-content-card {
    background: var(--bg-color);
    padding: 0.85rem 1.15rem;
    border-radius: 16px;
    box-shadow: 3px 3px 8px var(--shadow-dark),
        -3px -3px 8px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.timeline-note-callout {
    margin-top: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Neumorphic Breadcrumbs */
.neu-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 14px;
    background: var(--bg-color);
    box-shadow: inset 2.5px 2.5px 5px var(--shadow-dark),
        inset -2.5px -2.5px 5px var(--shadow-light);
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.45);
    margin-bottom: 0.75rem;
}

.neu-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
}

.neu-breadcrumb-item:hover {
    color: #0f2744;
    background: rgba(255, 255, 255, 0.4);
}

.neu-breadcrumb-item.active {
    color: #0d3880;
    font-weight: 700;
    background: var(--bg-color);
    box-shadow: 2px 2px 5px var(--shadow-dark),
        -2px -2px 5px var(--shadow-light);
    padding: 0.25rem 0.65rem;
    border-radius: 10px;
}

.neu-breadcrumb-separator {
    color: #94a3b8;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   NEUMORPHIC ACCESS PERMISSION SWITCHES & CARDS (USER-MANAGEMENT)
   ========================================================================== */
.access-permissions-section {
    margin-top: 1.5rem;
}

.access-group-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.6);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.access-group-card:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
}

.access-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.access-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f2744;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.access-group-title ion-icon {
    font-size: 1.2rem;
    color: #0d3880;
}

.access-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
}

.access-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.access-item-info {
    display: flex;
    flex-direction: column;
}

.access-item-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.1rem;
    cursor: pointer;
}

.access-item-desc {
    font-size: 0.73rem;
    color: #94a3b8;
}

/* Custom Tactile Neumorphic Switch */
.neu-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.neu-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.neu-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    box-shadow: inset 2px 2px 5px var(--shadow-dark),
        inset -2px -2px 5px var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.neu-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: #94a3b8;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.neu-switch input:checked + .neu-switch-slider {
    background-color: #0d3880;
    box-shadow: inset 1.5px 1.5px 4px rgba(0, 0, 0, 0.3);
}

.neu-switch input:checked + .neu-switch-slider:before {
    transform: translateX(22px);
    background-color: #ffffff;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.25);
}

/* Batch Action Pills for Permissions */
.permission-batch-btn {
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: var(--bg-color);
    box-shadow: 2px 2px 5px var(--shadow-dark),
        -2px -2px 5px var(--shadow-light);
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.permission-batch-btn:hover {
    color: #0d3880;
    transform: translateY(-1px);
}

.permission-batch-btn:active {
    box-shadow: inset 1.5px 1.5px 3px var(--shadow-dark),
        inset -1.5px -1.5px 3px var(--shadow-light);
}

/* ==========================================================================
   MOBILE APP SETTINGS SCREEN (MATCHING USER MOCKUP EXACTLY)
   ========================================================================== */
.app-settings-container {
    width: 100vw;
    min-height: 100vh;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.75rem 1.25rem 6.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.settings-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.settings-header-bar {
    margin-bottom: 0.5rem;
}

.settings-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin: 0;
}

/* 1. User Summary Profile Card */
.settings-profile-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 1.15rem 1.25rem;
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.settings-profile-left {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.settings-avatar-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 3px 3px 8px var(--shadow-dark),
        -3px -3px 8px var(--shadow-light);
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.settings-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
    color: #0d3880;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

.settings-profile-info {
    min-width: 0;
    flex: 1;
}

.settings-user-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-user-email {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-edit-profile-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    outline: none;
    color: #0d3880;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.settings-edit-profile-btn:hover {
    transform: scale(1.06);
    color: #1d68cd;
}

.settings-edit-profile-btn:active {
    transform: scale(0.95);
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

/* 2. Standalone & Grouped Settings Cards */
.settings-section-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.settings-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #64748b;
    padding-left: 0.35rem;
}

.settings-card-item {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 0.95rem 1.15rem;
    box-shadow: 5px 5px 12px var(--shadow-dark),
        -5px -5px 12px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    transition: all 0.2s ease;
}

.settings-clickable-item {
    cursor: pointer;
    user-select: none;
}

.settings-clickable-item:hover {
    transform: translateY(-1px);
    box-shadow: 6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
}

.settings-clickable-item:active {
    transform: scale(0.985);
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

.settings-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.settings-item-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.settings-item-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d3880;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.settings-item-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

.settings-item-chevron {
    font-size: 1rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.settings-clickable-item:hover .settings-item-chevron {
    transform: translateX(2px);
    color: #0f172a;
}

/* Modal Avatar Preview Overlay */
.settings-modal-avatar-preview {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow: 4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    border: 2px solid #ffffff;
    overflow: hidden;
}

.settings-modal-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.modal-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.settings-modal-avatar-preview:hover .modal-avatar-overlay {
    opacity: 1;
}

/* ==========================================================================
   NEUMORPHIC MODAL COMPONENT STYLES (APP SETTINGS & MOBILE POPUPS)
   ========================================================================== */
.neu-modal-content {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    box-shadow: 12px 12px 30px var(--shadow-dark),
        -12px -12px 30px var(--shadow-light);
    padding: 0.5rem;
}

.neu-modal-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--bg-color);
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d3880;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.neu-modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    outline: none;
    color: #64748b;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.neu-modal-close-btn:hover {
    color: #0f172a;
    transform: scale(1.06);
}

.neu-modal-close-btn:active {
    transform: scale(0.94);
    box-shadow: inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

.neu-modal-content .modal-header {
    padding: 1.25rem 1.25rem 0.5rem;
}

.neu-modal-content .modal-body {
    padding: 1rem 1.25rem;
}

.neu-modal-content .modal-footer {
    padding: 0.5rem 1.25rem 1.25rem;
    gap: 0.65rem;
}

.neu-modal-content .neu-input {
    background: var(--bg-color);
    border: none;
    outline: none;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: #1e293b;
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
    width: 100%;
    transition: all 0.2s ease;
}

.neu-modal-content .neu-input:focus {
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light),
        0 0 0 2px rgba(13, 56, 128, 0.2);
}

/* Cropper Viewport in Modal */
.neu-modal-content .cropper-viewport-container {
    width: 100%;
    height: 300px;
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.4);
}

/* Backdrop Dimming */
.modal-backdrop.show {
    opacity: 0.6;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}