:root {
    --primary: #000000;
    --primary-dark: #111111;
    --accent: #333333;
    --outline: #444444;
    --border: var(--outline);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --bg-body: #000000;
    --bg-card: #111111;
    --bg-primary: #1a1a1a;
    --bg-secondary: #222222;
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --success: #00ff00;
    --warning: #ffff00;
    --error: #ff4444;
    --danger: #ff4444;
    --info: #0088ff;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background-color: var(--primary-dark);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    padding: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
}

.header-left img {
    height: 40px;
    width: auto;
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    padding-right: 20px;
}

/* Sub-header styles */
.sub-header {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--primary);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px var(--shadow);
    z-index: 999;
}

.sub-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.sub-header-ui {
    height: 40px;
    width: 98%;
    background-color: var(--primary-dark);
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
}

.sub-header-ui .btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    transition: color 0.2s;
}

.sub-header-ui .btn:hover {
    color: var(--text-primary);
    background: none;
}

/* User profile styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-username {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.hamburger {
    display: none;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    background-color: var(--primary-dark);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    box-shadow: 0 4px 16px var(--shadow);
    z-index: 1002;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu.open {
    display: flex;
}

.mobile-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-username {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.mobile-logout {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-logout:hover {
    color: var(--text-primary);
}

.module-hamburger {
    display: none;
    background: var(--primary-dark);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.module-hamburger span {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

.module-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background-color: var(--primary-dark);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    box-shadow: 0 4px 16px var(--shadow);
    z-index: 1003;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.module-menu.open {
    display: flex;
}

.module-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s;
}

.module-link:hover {
    color: var(--text-primary);
}

/* User menu styles */
.user-menu {
    position: relative;
}

.user-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.user-trigger:hover {
    background-color: var(--bg-card-hover);
}

.user-avatar-wrap {
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-dropdown-meta {
    flex: 1;
}

.user-dropdown-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.user-dropdown-sep {
    height: 1px;
    background-color: var(--border);
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.user-dropdown-item:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.user-dropdown-item.danger {
    color: var(--error);
}

.user-dropdown-item.danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Main content */
.main-content {
    margin-top: 135px;
    min-height: calc(100vh - 135px);
    padding: 40px 0;
    background-color: var(--primary);
}

/* Welcome UI */
.welcome-ui {
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    background-color: var(--bg-card);
}

.welcome-ui h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.welcome-ui hr {
    border: none;
    height: 1px;
    background-color: var(--accent);
    margin: 10px 0;
}

.welcome-ui p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
}

.welcome-ui p:last-child {
    margin-bottom: 0;
}

/* Modules UI */
.modules-ui {
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    background-color: var(--bg-card);
    margin-top: 40px;
}

/* Module Grid */
.module-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.module-square {
    border: 1px solid var(--accent);
    border-radius: 8px;
    width: 260px;
    height: 180px;
    background-color: var(--primary-dark);
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.module-title {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.module-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* Hide number input spinners - AGGRESSIVE APPROACH */
input[type="number"] {
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

input[type="number"]::-moz-number-spin-box {
    -moz-appearance: textfield !important;
    display: none !important;
}

/* Additional aggressive spinner removal */
input[type="number"] {
    -webkit-text-security: none;
}

input[type="number"]:focus {
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.bg-glow-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(54, 65, 78, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 10%;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(54, 65, 78, 0.2) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
}

/* Admin Dashboard Styles */
.admin-header {
    border-bottom: 1px solid var(--border);
}

.admin-main {
    margin-top: 75px;
    min-height: calc(100vh - 75px);
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 75px);
}

.admin-sidebar {
    width: 280px;
    background-color: var(--accent);
    padding: 20px;
    box-sizing: border-box;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 75px;
}

.sidebar-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s;
}

.sidebar-link:hover {
    background-color: var(--primary);
    color: white;
}

.sidebar-link.active {
    background-color: var(--primary);
    color: var(--info);
}

.sidebar-dropdown {
    border: none;
    background: none;
}

.sidebar-dropdown-content {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.sidebar-dropdown-summary {
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    text-align: left;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.system-text {
    color: var(--text-muted) !important;
    font-size: 1.1em;
}

.arrow {
    font-size: 1.2em;
}
@media (max-width: 768px) {
    .header-left {
        padding-left: 15px;
    }

    .header-right {
        padding-right: 15px;
    }

    .user-profile {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .sub-header-ui {
        display: none;
    }

    .sub-header-inner {
        justify-content: flex-end;
    }

    .module-hamburger {
        display: flex;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        margin-top: 135px;
        padding: 20px 0;
    }

    .container {
        padding: 0 15px;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        display: none;
    }
}

/* Admin Dashboard Styles */
.admin-vertical-line {
    position: fixed;
    left: 280px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(54, 65, 78, 0.3);
    z-index: 100;
}

.admin-mobile-logo {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    display: none;
}

.admin-mobile-logo img {
    height: 30px;
    width: auto;
}

.admin-mobile-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 1001;
    display: none;
}

.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 60px;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-header-left .logo img {
    height: 35px;
    width: auto;
}

.admin-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.admin-user-name {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.admin-separator {
    height: 1px;
    background: var(--border);
    margin: 0 20px;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 280px;
    background: var(--primary-dark);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 999;
    padding: 20px 0;
}

.admin-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: none;
}

.admin-sidebar-section {
    margin-bottom: 30px;
}

.admin-sidebar-category {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.admin-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    background: none;
    width: calc(100% - 10px);
    margin: 0 5px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
}

.admin-sidebar-btn:hover {
    background: rgba(54, 65, 78, 0.1);
    color: var(--text-primary);
}

.admin-sidebar-btn.active {
    background: var(--accent);
    color: var(--white);
}

.admin-sidebar-btn svg {
    flex-shrink: 0;
}

.admin-sidebar-close {
    display: none;
}

.admin-container {
    margin-left: 280px;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

@media (max-width: 1024px) {
    .admin-vertical-line {
        left: 250px;
    }

    .admin-sidebar {
        width: 250px;
    }

    .admin-container {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .admin-vertical-line {
        display: none;
    }

    .admin-mobile-toggle {
        display: block;
    }

    .admin-mobile-logo {
        display: block;
    }

    .admin-sidebar-backdrop {
        display: block;
    }

    .admin-sidebar-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .admin-sidebar {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100% !important;
        height: auto;
        display: none;
        z-index: 1002;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .admin-sidebar.open {
        display: block;
    }

    .admin-sidebar-close {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 24px;
        cursor: pointer;
        z-index: 1;
    }

    .admin-sidebar-buttons {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .admin-sidebar-btn {
        flex: none;
        width: 100%;
        text-align: left;
    }

    .admin-container {
        margin-left: 0;
    }

    .admin-header-right {
        display: none;
    }
}

/* Select and dropdown styles */
select {
    width: 100%;
    padding: 8px;
    background-color: var(--primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Custom dropdown arrow */
.dropdown-arrow {
    position: absolute;
    right: 1px;
    top: 25%;
    transform: translateY(0%);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.dropdown-arrow svg {
    width: 100%;
    height: 100%;
    stroke: #666666;
    stroke-width: 2;
    fill: none;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
    border: 2px solid var(--primary-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

::-webkit-scrollbar-corner {
    background: var(--primary-dark);
}

/* Law Enforcement specific scrollbar styles */
.law-scroll::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.law-scroll::-webkit-scrollbar-track {
    background: var(--primary-dark);
    border-radius: 6px;
}

.law-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
    border: 2px solid var(--primary-dark);
}

.law-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

.law-scroll::-webkit-scrollbar-corner {
    background: var(--primary-dark);
}

/* Firefox scrollbar styles */
.law-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--primary-dark);
}
