:root {
    /* Deep Blue Theme - Inspired by screenshot */
    --primary: #2d3faa;
    /* Royal Blue */
    --primary-dark: #1e2875;
    --primary-light: #5b6fd8;
    --secondary: #06b6d4;
    /* Cyan/Turquoise */
    --accent: #14b8a6;
    /* Teal */
    --bg: #e8eaf6;
    /* Light lavender background */
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Deep Blue Gradient */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2d3faa 0%, #1e2875 100%);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    z-index: 10;
    position: relative;
}

/* Decorative dots pattern */
/* .sidebar::before {
    content: "";
    position: absolute;
    top: 60px;
    left: 30px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.5;
} */

.brand {
    margin-bottom: 3rem;
}

.brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* .brand a::before {
    content: "D";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}
 */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateX(3px);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
}

.top-bar {
    height: 80px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
}


.top-bar h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* 
.dashboard-container {
    max-width: 1400px;
} */

.footer {
    padding: 1rem 2rem;
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 63, 170, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 63, 170, 0.4);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}

.card {
    background-color: var(--surface);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: none;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background-color: transparent;
}

.card-body {
    padding: 1.5rem;
}

/* Form Elements */
.form-control,
input,
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    /* margin-bottom: 1rem; */
    font-family: inherit;
    background-color: white;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(45, 63, 170, 0.1);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: none;
    text-align: left;
}

td {
    padding: 1.25rem 1rem;
    background-color: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

td:first-child {
    border-left: 1px solid var(--border);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

td:last-child {
    border-right: 1px solid var(--border);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

tr {
    transition: transform 0.2s ease;
}

tr:hover td {
    background-color: #f8fafc;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bg-primary {
    background-color: var(--primary);
    color: white;
}

.bg-secondary {
    background-color: var(--text-light);
    color: white;
}

.bg-success-soft {
    background-color: #d1fae5;
}

.text-success {
    color: var(--success);
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted);
}

.text-uppercase {
    text-transform: uppercase;
}

.fw-bold {
    font-weight: 700;
}

.fw-medium {
    font-weight: 500;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-inline {
    display: inline;
}

.d-inline-block {
    display: inline-block;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-end {
    align-items: flex-end;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-around {
    justify-content: space-around;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-end {
    text-align: right;
}

.border-end {
    border-right: 1px solid var(--border);
}

.rounded-pill {
    border-radius: 50px;
}

.rounded-3 {
    border-radius: 12px;
}

.overflow-hidden {
    overflow: hidden;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.border-0 {
    border: none !important;
}

.bg-white {
    background-color: white;
}

.bg-light {
    background-color: #f8fafc;
}

.text-white {
    color: white;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-dark {
    color: var(--text);
}

.text-primary {
    color: var(--primary);
}

.text-danger {
    color: #ef4444;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.p-0 {
    padding: 0;
}

.p-3 {
    padding: 1rem;
}

.ps-4 {
    padding-left: 1.5rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.pb-4 {
    padding-bottom: 1.5rem;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.col,
.col-4,
.col-6,
.col-8,
.col-12,
.col-md-4,
.col-md-6,
.col-md-8,
.col-lg-4,
.col-lg-8 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* Display utilities */
.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Container */
.container-fluid {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

/* List group */
.list-group {
    display: flex;
    flex-direction: column;
}

.list-group-flush .list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 1rem 1.25rem;
    background-color: white;
    border: 1px solid var(--border);
}

.list-group-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Button group */
.btn-group {
    display: inline-flex;
    gap: 0.25rem;
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
}

.alert-light {
    background-color: #f8fafc;
    border-color: var(--border);
    color: var(--text);
}

/* Small text */
small,
.small {
    font-size: 0.875rem;
}

/* Lead text */
.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Flex utilities */
.flex-grow-1 {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* User avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* Custom Tab Styles */
.nav-tabs {
    border-bottom: 2px solid var(--border);
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    background-color: rgba(45, 63, 170, 0.05);
    border: none;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background-color: rgba(45, 63, 170, 0.1);
    border: none;
}

/* Compact Table */
.table-compact td,
.table-compact th {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-compact th {
    font-size: 0.75rem;
}

/* Filter Bar */
.filter-bar {
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /* Center align items */
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-input {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(45, 63, 170, 0.1);
}

.bulk-actions {
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #eff6ff;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.bulk-actions.active {
    display: flex;
}

/* Public Layout Styles */
.public-layout {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.public-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 10px 25px rgba(45, 63, 170, 0.3);
}

.brand-logo span {
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}


.brand-logo {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 10px 25px rgba(45, 63, 170, 0.3);
}

.brand-logo span {
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.brand-slogan {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.public-card {
    background: white;
    max-width: 550px;
    width: 100%;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.public-footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

/* Form tweaks for public pages */
.public-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text);
}

.public-card .form-control {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    padding: 0.875rem 1rem;
}

.public-card .form-control:focus {
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 63, 170, 0.1);
}

.public-card .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Asset Detail Labels */
.detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-compact th {
    font-size: 0.75rem;
}

/* Filter Bar */
.filter-bar {
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /* Center align items */
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-input {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(45, 63, 170, 0.1);
}

.bulk-actions {
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #eff6ff;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.bulk-actions.active {
    display: flex;
}

/* Public Layout Styles */
.public-layout {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.public-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 10px 25px rgba(45, 63, 170, 0.3);
}

.brand-logo span {
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.brand-slogan {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.public-card {
    background: white;
    max-width: 550px;
    width: 100%;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.public-footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

/* Form tweaks for public pages */
.public-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text);
}

.public-card .form-control {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    padding: 0.875rem 1rem;
}

.public-card .form-control:focus {
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 63, 170, 0.1);
}

.public-card .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Asset Detail Labels */
.detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}

/* Gap utilities */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: rgba(45, 63, 170, 0.08);
    color: var(--primary);
}

.dropdown-item i {
    font-size: 1.1rem;
}

/* Fix checkbox alignment */
.form-check {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: 1rem;
}

.form-check-input {
    float: none;
    position: static;
    margin-left: 0;
    margin-right: 0.5rem;
    margin-top: 0;
    gap: 0.5rem;
}

.filter-input {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(45, 63, 170, 0.1);
}

.bulk-actions {
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #eff6ff;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.bulk-actions.active {
    display: flex;
}

/* Public Layout Styles */
.public-layout {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.public-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 10px 25px rgba(45, 63, 170, 0.3);
}

.brand-logo span {
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.brand-slogan {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.public-card {
    background: white;
    max-width: 550px;
    width: 100%;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.public-footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

/* Form tweaks for public pages */
.public-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text);
}

.public-card .form-control {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    padding: 0.875rem 1rem;
}

.public-card .form-control:focus {
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 63, 170, 0.1);
}

.public-card .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Asset Detail Labels */
.detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}

/* Gap utilities */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: rgba(45, 63, 170, 0.08);
    color: var(--primary);
}

.dropdown-item i {
    font-size: 1.1rem;
}

/* Fix checkbox alignment */
.form-check {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: 1rem;
}

.form-check-input {
    float: none;
    position: static;
    margin-left: 0;
    margin-right: 0.5rem;
    margin-top: 0;
    width: 1.1em;
    height: 1.1em;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
        width: 280px;
        /* Ensure width is maintained */
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-backdrop.show {
        display: block;
        opacity: 1;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .top-bar {
        padding: 0 1rem;
    }

    .content-area {
        padding: 1rem;
    }
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Public Layout Responsiveness */
@media (max-width: 576px) {
    .public-layout {
        padding: 1rem;
    }

    .public-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .brand-logo {
        width: 80px;
        height: 80px;
    }

    .brand-logo span {
        font-size: 1.5rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }
}

/* Tablet Responsiveness */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .card {
        padding: 0.25rem;
    }

    .card-header {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .card {
        border-radius: 12px;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .d-flex.justify-content-between>* {
        width: 100%;
    }

    /* Stack columns on mobile */
    .row>[class*="col-"] {
        margin-bottom: 1rem;
    }
}