:root {
    --primary: #001F79;
    --bg: #f8f9fa;
    --card: #ffffff;
    --text: #111;
    --muted: #6c757d;
    --shadow: 0 4px 16px rgba(0,0,0,.08);
    --subscriber-primary-icon-color: #212529; /*#fd0000;*/ /* default color */
}
[data-theme="dark"] {
    --bg: #0b1220;
    --card: #141a2a;
    --text: #e8eefc;
    --muted: #a5b4d3;
    --shadow: 0 10px 20px rgba(0,0,0,.5);
}
@font-face {
    font-family: 'Akrobat';
    src: url('/fonts/Akrobat-Regular.woff2') format('woff2'), url('/fonts/Akrobat-Regular.woff') format('woff'), url('/fonts/Akrobat-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
}
@font-face {
    font-family: 'Akrobat';
    src: url('/fonts/Akrobat-Bold.woff2') format('woff2'), url('/fonts/Akrobat-Bold.woff') format('woff'), url('/fonts/Akrobat-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
}
html, body {
    height: 100%;
    font-family: 'Akrobat', sans-serif;
    background: var(--bg);
    color: var(--text);
}
body.d-flex {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.subscriber-primary-icon-color {
    color: var(--subscriber-primary-icon-color) !important;
}
#contentWrap {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: margin-left .25s ease;
}
#contentWrap .header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    width: 100%;
    height: 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#contentWrap main {
    flex: 1 1 auto;
}
@media (min-width: 992px) {
    #contentWrap {
        margin-left: var(--nav-width);
    }
}
.card {
    background: var(--card);
    border: 0;
    box-shadow: var(--shadow);
    border-radius: 0.75rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-hero {
    background: linear-gradient(135deg, rgba(0,31,121,.7), rgba(0,31,121,.5)), url('/images/hero-login.jpg') center/cover no-repeat;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.hide-mobile {
    display: inline;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}
.header{
    height: 64px !important;
}
.fs-7{
    font-size: 0.75rem;
}

.feature-icon{
    font-size: 2.5rem;
}
@media (min-width: 768px) {
    .fs-7 {
        font-size: 1.5rem;
    }
    .feature-icon {
        font-size: 3.5rem;
    }
}
@media (max-width: 767.98px) {
    .features-row {
        --bs-gutter-x: 0.5rem; /* Reduce horizontal gap */
        --bs-gutter-y: 0.5rem; /* Reduce vertical gap */
    }
}
.brand-area {
    height: 64px;
    min-height: 64px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}

.hamburger-toggle {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.hamburger-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after,
.hamburger-icon span {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #212529; /* dark bars for light theme */
    border-radius: 2px;
    transition: background 0.2s;
}

.hamburger-icon::before {
    top: 4px;
}
.hamburger-icon span {
    top: 12px;
}
.hamburger-icon::after {
    top: 20px;
}

/* Invert bars only on hover, keep button background transparent */
.hamburger-toggle:hover .hamburger-icon::before,
.hamburger-toggle:hover .hamburger-icon::after,
.hamburger-toggle:hover .hamburger-icon span {
    background: #0d6efd; /* Bootstrap primary or any accent color for visibility */
}
.field-description {
    color: #5E6366;
    font-size: 0.75rem;
    line-height: 16px !important;
}

.field-validation-error {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-form-invalid-color);
}

.field-validation-valid {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-form-valid-color);
}

.validation-summary-errors {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-form-invalid-color);
}
.offcanvas{
    z-index: 1070 !important;
}
.offcanvas-body .form-label {
    font-weight: 500;
}
label {
    color: #7b7b7c;
}
table.dataTable > tbody > tr {
    cursor: pointer;
}
.photo-upload-placeholder label span:hover {
    background: #e9ecef;
    border-color: #0d6efd;
}
.attachment-card {
    cursor: pointer;
}
.comment-log {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}