/* ==========================================================================
   1. ROOT VARIABLES & GLOBAL BASE
   ========================================================================== */
:root {
    --bg-primary: #000000;            /* Pitch-black background match */
    --bg-surface: #070708;            /* Ultra-dark surface base */
    --bg-card: #111113;               /* Deep charcoal operational card backgrounds */
    --text-main: #ffffff;             /* White letter matching */
    --text-muted: #8e8e93;            /* Subdued crisp gray annotations */
    --accent: #ff1e27;                /* Pure high-intensity flame red matched to image */
    --accent-hover: #dd131b;          /* Darker shade red for interactive cursor hovers */
    --success: #22c55e;               /* Compliance system clear-state green */
    --border-color: rgba(255, 255, 255, 0.05);
    --nav-height: 90px;               /* Elevated slightly to balance typography spacing */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
}

/* ==========================================================================
   2. NAVIGATION & HEADER COMPONENTS
   ========================================================================== */
.navbar-wrapper {
    width: 100%;
    background-color: #050505;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

/* --- Top Alert Banner --- */
.top-banner {
    width: 100%;
    height: 42px;
    background: linear-gradient(90deg, #0a0a0a 0%, #1a0506 50%, #0a0a0a 100%);
    border-bottom: 1px solid rgba(255, 30, 39, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    box-sizing: border-box;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 30, 39, 0.12);
    border: 1px solid rgba(255, 30, 39, 0.4);
    color: #ff333a;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.sika-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ff1e27;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #ff1e27;
    animation: sikaPulse 1.8s infinite ease-in-out;
}

@keyframes sikaPulse {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 10px rgba(255, 30, 39, 0.9); }
}

.banner-text {
    font-size: 0.8rem;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Navigation Container --- */
.site-header {
    width: 100%;
    background: #070708;
    border-bottom: 1px solid rgba(255, 30, 39, 0.2);
    padding: 0.75rem 1.5rem;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 68px;
    padding: 0 32px;
    box-sizing: border-box;
    position: relative;
}

/* Branding & Logo */
.nav-logo-brand {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.brand-logo-img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-text-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-main-row {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}

.logo-sub-row {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: var(--text-main);
    margin-top: 2px;
    white-space: nowrap;
}

.dot-red {
    color: var(--accent);
}

/* Actions & Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.contact-btn {
    background-color: var(--accent);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 30, 39, 0.25);
}

.contact-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.admin-btn {
    background: transparent;
    border: 1px solid rgba(255, 30, 39, 0.4);
    color: #ff333a;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease-in-out;
}

.admin-btn:hover,
.admin-btn.active {
    background: var(--accent);
    color: #e41e1e;
    box-shadow: 0 0 10px rgba(255, 30, 39, 0.4);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

/* ==========================================================================
   3. HERO & GENERAL PAGE LAYOUTS
   ========================================================================== */
.hero-layout {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0px 1.5rem 2rem 1.5rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.top-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.top-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.top-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.announcement-tag {
    background: rgba(255, 30, 39, 0.08);
    border: 1px solid rgba(255, 30, 39, 0.2);
    color: #ff4d52;
    padding: 0.4rem 1.25rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

/* Grids */
.hero-metrics-grid,
.capabilities-grid,
.personnel-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.hero-metrics-grid {
    margin-top: 2.5rem;
    text-align: left;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 30, 39, 0.3);
}

.metric-icon {
    background: rgba(255, 30, 39, 0.1);
    color: var(--accent);
    font-size: 1.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    display: flex;
}

.metric-data h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.metric-data span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   4. FORMS & INPUTS
   ========================================================================== */
.form-section {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 3.5rem;
}

.form-header {
    margin-bottom: 1.25rem;
}

.form-header h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.modern-form {
    display: flex;
    gap: 1rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.85rem 1.2rem;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

select {
    cursor: pointer;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
}

.modern-form button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.modern-form button:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   5. DASHBOARD TASKS & BOARDS
   ========================================================================== */
.board-section {
    margin-bottom: 4rem;
}

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

.board-header h3 {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.board-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.task-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    transition: transform 0.2s, border-color 0.2s;
}

.task-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 30, 39, 0.25);
}

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

.badge.universal-tag {
    background: rgba(255, 30, 39, 0.1);
    color: #ff4d52;
    border: 1px solid rgba(255, 30, 39, 0.18);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.task-title {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.task-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.action-btn {
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.4rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.action-btn.check { color: var(--text-muted); }
.action-btn.check:hover { color: var(--success); background: rgba(34, 197, 94, 0.1); }
.action-btn.delete { color: var(--text-muted); }
.action-btn.delete:hover { color: var(--accent); background: rgba(255, 30, 39, 0.1); }

.task-card.task-done { opacity: 0.4; }
.task-card.task-done .task-title { text-decoration: line-through; color: var(--text-muted); }
.task-card.task-done .action-btn.check { color: var(--success); }

.empty-state-card {
    grid-column: 1 / -1;
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.empty-state-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.empty-state-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   6. CARDS, PANELS & SECTIONS
   ========================================================================== */
/* Capabilities */
.capabilities-section {
    margin-bottom: 4rem;
}

.cap-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cap-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 39, 0.3);
}

.cap-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.cap-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cap-card:hover .cap-img-container img {
    transform: scale(1.06);
}

.cap-tag {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(7, 7, 8, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cap-content {
    padding: 1.5rem;
}

.cap-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.cap-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Client Banner */
.clients-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.client-title {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.client-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.client-pills span {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.client-pills span:hover {
    border-color: var(--accent);
    background: rgba(255, 30, 39, 0.05);
}

/* About & Commitment */
.about-section {
    margin-bottom: 3.5rem;
}

.about-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: center;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Key Personnel */
.personnel-section {
    margin-bottom: 0;
}

.person-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.person-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 30, 39, 0.3);
}

.person-avatar {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.person-info h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.person-title {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.person-info p, .person-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.person-desc {
    font-size: 0.825rem;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.person-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 30, 39, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 30, 39, 0.2);
    transition: all 0.2s ease;
}

.person-phone:hover {
    background: var(--accent);
    color: #ffffff;
}

.person-highlight {
    border-color: rgba(255, 30, 39, 0.3);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(255, 30, 39, 0.03) 100%);
}

/* Support & Contact Cards */
.support-banner {
    margin-top: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.support-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.support-banner h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.support-banner p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.projects-section {
    margin-bottom: 4rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 30, 39, 0.3);
}

.project-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.project-card h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.corporate-contact-card {
    margin-top: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 2.2rem;
    color: var(--accent);
}

.contact-header h4 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.contact-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-main);
}

/* Expansion Alert Banner */
.expansion-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.12), rgba(229, 57, 53, 0.03));
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-top: 0 !important; 
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.expansion-alert-banner.banner-hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    display: none;
}

.expansion-alert-banner .alert-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    min-width: 280px;
}

.pulse-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s infinite;
}

.flag-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.flag-img {
    width: 30px;
    height: auto;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

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

.alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.alert-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateX(3px);
}

.close-alert-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-alert-btn:hover {
    color: var(--accent);
    background: rgba(255, 30, 39, 0.1);
}

/* ==========================================================================
   7. INTERNAL / COMPANY DARK PAGES
   ========================================================================== */
.internal-view {
    background-color: #050505;
    color: #e2e8f0;
    padding: 1.5rem;
    min-height: calc(100vh - var(--nav-height) - 400px);
}

.dark-hero {
    background: radial-gradient(circle at top center, rgba(255, 30, 39, 0.08) 0%, #0a0a0a 70%);
    border: 1px solid rgba(255, 30, 39, 0.2);
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(255, 30, 39, 0.05);
}

.badge-tag-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 30, 39, 0.1);
    color: #ff333d;
    border: 1px solid rgba(255, 30, 39, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title-dark {
    font-size: 2.75rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.highlight-red {
    color: #ff1e27;
    text-shadow: 0 0 20px rgba(255, 30, 39, 0.4);
}

.hero-lead-dark {
    font-size: 1.1rem;
    color: #a1a1aa;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.6;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dark-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.75rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-card:hover {
    border-color: rgba(255, 30, 39, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 30, 39, 0.1);
}

.card-full-width {
    margin-bottom: 2rem;
}

.card-header-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.red-icon {
    color: #ff1e27;
    font-size: 1.35rem;
}

.card-title-dark {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.card-text-dark {
    color: #a1a1aa;
    line-height: 1.65;
    margin: 0;
}

.card-subtext-dark {
    color: #71717a;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.dark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dark-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    line-height: 1.5;
    color: #d4d4d8;
}

.dark-list li strong {
    color: #ffffff;
}

.dark-list li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: #ff1e27;
    font-size: 1.2rem;
    line-height: 1;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.branch-title-dark {
    color: #ffffff;
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.contact-detail-item-dark {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    color: #a1a1aa;
    font-size: 0.95rem;
}

.email-row-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.info-layout-block {
    max-width: 800px;
    margin: 0 auto;
}

.info-content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
}

.info-content-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-content-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ==========================================================================
   8. MAPS & LOCATION PANELS
   ========================================================================== */
.location-layout-structure {
    display: grid; 
    grid-template-columns: 350px 1fr; 
    gap: 2rem; 
    align-items: stretch;
    margin-top: 2rem;
}

.map-render-canvas {
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    background: #0e0e11; 
    height: 480px;
    min-height: 480px;
    width: 100%;
    position: relative; 
    overflow: hidden;
}

.map-render-canvas iframe {
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
    -webkit-filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.location-visual-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.location-visual-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 30, 39, 0.03);
    filter: blur(80px);
    border-radius: 50%;
}

.panel-graphics {
    font-size: 5.5rem;
    color: var(--accent);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-pulse {
    animation: rotateCompass 12s linear infinite;
}

@keyframes rotateCompass {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.panel-text-block h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.panel-text-block p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.coordinates-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.coordinates-pill i {
    color: var(--accent);
}

.launch-map-btn {
    display: inline-flex !important;
    width: auto !important;
    padding: 0.85rem 1.75rem !important;
}

/* ==========================================================================
   9. DEVELOPER CREDIT & TOOLTIPS
   ========================================================================== */
.dev-link-container {
    position: relative;
    display: inline-block;
}

.dev-link {
    position: relative;
    display: inline-block;
    color: #0077b5; /* LinkedIn brand blue */
    text-decoration: none;
    font-weight: bold;
}

.dev-link:hover {
    text-decoration: underline;
}

.dev-link .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: normal;
    position: absolute;
    z-index: 1;
    bottom: 125%; 
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.dev-link .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.dev-link:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.profile-card {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #333333;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    z-index: 10;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.profile-card::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.profile-card img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #0077b5;
}

.profile-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.profile-info .name {
    font-weight: 600;
    font-size: 13px;
    color: #111;
}

.profile-info .cta {
    font-size: 11px;
    color: #0077b5;
}

.dev-link-container:hover .profile-card {
    visibility: visible;
    opacity: 1;
}

/* ==========================================================================
   10. FOOTER COMPONENTS
   ========================================================================== */
.footer-wrapper {
    background: #030303;
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-column {
    max-width: 360px;
}

.brand-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.35rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-links-grid {
    display: flex;
    gap: 5rem;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-group h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-group a:hover {
    color: var(--accent);
}

.footer-logo-holder {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-embedded-logo {
    max-width: 140px;
    height: auto;
    border-radius: 4px;
    opacity: 0.6;
    border: 1px solid var(--border-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   11. ANIMATIONS & UTILITIES
   ========================================================================== */
.animate-fade {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.animate-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.glow-border {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flex-grow { flex-grow: 1; }
.m-0 { margin: 0 !important; }
.mobile-only-actions { display: none; }

/* ==========================================================================
   12. MEDIA QUERIES & RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Desktop & Large Screens (min-width: 869px) */
@media screen and (min-width: 869px) {
    .menu-toggle-btn {
        display: none;
    }

    .nav-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-left: 48px;
    }

    .nav-links-group {
        display: flex;
        align-items: center;
        gap: 28px;
    }

    .nav-link {
        color: #cccccc;
        text-decoration: none;
        font-size: 0.92rem;
        font-weight: 500;
        position: relative;
        padding: 8px 0;
        transition: color 0.2s ease;
    }

    .nav-link:hover, .nav-link.active {
        color: #ffffff;
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #ff1e27;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #111113;
        border: 1px solid rgba(255, 30, 39, 0.3);
        border-radius: 6px;
        min-width: 180px;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .dropdown-item {
        display: block;
        padding: 10px 16px;
        color: #e5e5ea;
        text-decoration: none;
        font-size: 0.85rem;
    }

    .dropdown-item:hover {
        background: rgba(255, 30, 39, 0.15);
        color: #ff1e27;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Laptops & Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-layout {
        padding-top: 85px;
    }

    .capabilities-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-header h1 {
        font-size: 2.2rem;
    }
}

/* Mobile & Small Tablets (max-width: 868px) */
@media screen and (max-width: 868px) {
    .menu-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 30px;
        cursor: pointer;
        z-index: 10005;
        padding: 0;
    }

    .desktop-actions {
        display: none;
    }

    .mobile-only-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        width: 100%;
    }

    /* Drawer Menu */
    .nav-menu {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 310px;
        height: 100vh;
        background-color: #08080a;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 64px 20px 24px 20px;
        box-sizing: border-box;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.95);
        overflow: visible !important;
    }

    .nav-menu.open {
        right: 0 !important;
        left: auto;
    }

    .nav-links-group {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        margin-top: 10px;
    }

    .nav-link {
        color: #bbbbbb;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        padding: 6px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-link.active {
        color: #ffffff;
        font-weight: 600;
    }

    .nav-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .contact-btn, .admin-btn {
        flex: 1;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.82rem;
        text-decoration: none;
        white-space: nowrap;
        box-sizing: border-box;
        margin-left: 0 !important;
    }

    .dropdown-menu {
        display: none;
        position: static;
        background: #000;
        padding-left: 1rem;
        border-left: 2px solid #ff1e27;
        margin-top: 5px;
    }

    .dropdown-item {
        display: block;
        padding: 8px 12px;
        color: #8e8e93;
        text-decoration: none;
        font-size: 0.85rem;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }

    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .hero-layout {
        padding: 80px 1rem 1.5rem 1rem;
    }

    .main-content {
        gap: 2.5rem;
    }

    .top-header h1 {
        font-size: 2.25rem;
    }

    .top-header p {
        font-size: 0.95rem;
    }

    .modern-form {
        flex-direction: column;
    }

    .modern-form button {
        justify-content: center;
    }

    .about-card {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-metrics-grid,
    .capabilities-grid,
    .personnel-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .client-pills {
        gap: 0.5rem;
    }

    .client-pills span {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .expansion-alert-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .alert-actions {
        width: 100%;
        justify-content: space-between;
    }

    .alert-btn {
        width: 100%;
        justify-content: center;
    }

    .location-layout-structure {
        grid-template-columns: 1fr;
    }

    .map-render-canvas {
        height: 350px;
        min-height: 350px;
    }

    .location-visual-panel {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        gap: 1.5rem;
    }

    .panel-text-block p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-container {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-logo-holder {
        justify-content: flex-start;
    }
}

/* Smartphones (max-width: 480px) */
@media (max-width: 480px) {
    .hero-layout {
        padding-top: 0px;
    }

    .pulse-tag {
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .top-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .cap-img-container {
        height: 160px;
    }

    .support-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .support-icon {
        font-size: 2rem;
    }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutToRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

/* Container spacing */
.menu-item {
  width: 100%;
}

.menu-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
}

/* Hide submenus by default */
.submenu {
  display: none;
  flex-direction: column;
  padding-left: 15px;
  background-color: #121212; /* slightly lighter than main black background */
}

.submenu a {
  color: #b3b3b3;
  padding: 8px 0;
  text-decoration: none;
  font-size: 0.95rem;
}

.submenu a:hover {
  color: #ffffff;
}

/* Shown when active */
.submenu.open {
  display: flex;
}

/* ==========================================================================
   MOBILE MENU HOVER & CLICK STYLES
   ========================================================================== */

/* Hover & Active states for Nav Links */
.nav-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link.active {
    color: var(--accent) !important; /* Pure high-intensity flame red */
}

/* Arrow rotation when active */
.nav-dropdown.open .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Submenu/Dropdown Mobile Container */
@media screen and (max-width: 868px) {
    .dropdown-menu, 
    .submenu {
        display: none;
        flex-direction: column;
        background: rgba(255, 30, 39, 0.05);
        border-left: 2px solid var(--accent);
        border-radius: 4px;
        margin-top: 6px;
        margin-bottom: 6px;
        padding: 4px 0 4px 12px;
        transition: all 0.3s ease;
    }

    /* Shown state when JS adds .open class */
    .dropdown-menu.open,
    .submenu.open,
    .nav-dropdown.open .dropdown-menu {
        display: flex !important;
    }

    .dropdown-item, 
    .submenu a {
        display: block;
        padding: 10px 12px;
        color: #b3b3b3;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    /* Red indicator on hover/click inside mobile submenus */
    .dropdown-item:hover,
    .dropdown-item:active,
    .submenu a:hover,
    .submenu a:active {
        color: var(--accent) !important;
        background-color: rgba(255, 30, 39, 0.1);
        padding-left: 16px; /* Smooth slide-in effect */
    }
}





/* Dark Theme Overrides for Quill Rich Text Editor */
    .ql-toolbar.ql-snow {
        background: #111113;
        border: 1px solid #333 !important;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
    }
    .ql-container.ql-snow {
        background: #000;
        border: 1px solid #333 !important;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        color: #fff;
        min-height: 100px;
        font-family: inherit;
    }
    .ql-stroke { stroke: #8e8e93 !important; }
    .ql-fill { fill: #8e8e93 !important; }
    .ql-picker { color: #8e8e93 !important; }
    .ql-active .ql-stroke, .ql-picker-label.ql-active { stroke: #ff1e27 !important; color: #ff1e27 !important; }
    .ql-active .ql-fill { fill: #ff1e27 !important; }
    .ql-editor.ql-blank::before { color: #555 !important; font-style: normal; }


    .btn-submit-dark {
  display: block;

  margin: 20px auto 0 auto;
  background-color: #d92525;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}



    /* Wrapper shifted left and spans full container width */
.location-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem 0;
}

    /* Tab Controller */
    .location-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

    .tab-btn {
        background: #111113;
        color: #8e8e93;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 12px 20px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.25s ease;
    }

    .tab-btn:hover {
        background: #1a1a1e;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .tab-btn.active {
        background: var(--accent, #ff1e27);
        color: #ffffff;
        border-color: var(--accent, #ff1e27);
        box-shadow: 0 4px 14px rgba(255, 30, 39, 0.3);
    }

    .location-grid-landscape {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

    /* Details Card */
    .location-card {
        background: #070708;
        border: 1px solid rgba(255, 30, 39, 0.2);
        border-radius: 12px;
        padding: 1.75rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .location-card-header {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        color: var(--accent, #ff1e27);
        font-size: 1.15rem;
        margin-top: 0;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .branch-title {
        font-weight: 700;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        color: #ffffff;
        letter-spacing: -0.01em;
    }

    .address-text {
        color: #8e8e93;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .card-footer-details {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 1.25rem;
    }

    .info-row {
        font-size: 0.88rem;
        color: #8e8e93;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .info-row strong {
        color: #e5e5ea;
    }

    .btn-directions {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background-color: var(--accent, #ff1e27);
        color: #ffffff;
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        width: 100%;
        margin-top: 0.5rem;
        box-sizing: border-box;
        transition: background-color 0.2s ease, transform 0.1s ease;
    }

    .btn-directions:hover {
        background-color: #e01b22;
        transform: translateY(-1px);
    }

    /* Side-by-Side Landscape Map Frame */
    .map-container-landscape {
        width: 100%;
        min-height: 480px;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        background: #070708;
    }

    .map-container-landscape iframe {
        width: 100%;
        height: 100%;
        min-height: 480px;
        border: 0;
        display: block;
    }

    /* Responsive adjustment for tablet/mobile */
    @media (max-width: 992px) {
        .location-grid-landscape {
            grid-template-columns: 1fr;
        }
        .map-container-landscape, 
        .map-container-landscape iframe {
            min-height: 350px;
        }
    }

/* ==========================================================================
   EXACT HTML MATCH - LOCATION PAGE LIGHT THEME
   ========================================================================== */

/* 1. Inactive vs Active Tabs */
[data-theme="light"] .location-tabs .tab-btn {
    background-color: #ffffff !important;
    color: var(--text-main, #111827) !important;
    border: 1px solid var(--border-color, #e5e7eb) !important;
}

[data-theme="light"] .location-tabs .tab-btn.active {
    background-color: var(--accent, #ff1e27) !important;
    color: #ffffff !important;
    border-color: var(--accent, #ff1e27) !important;
}

/* 2. Left Details Card Container */
[data-theme="light"] .location-card {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color, #e5e7eb) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* 3. Text Inside the Details Card */
[data-theme="light"] .location-card .branch-title {
    color: var(--text-main, #111827) !important;
}

[data-theme="light"] .location-card .address-text,
[data-theme="light"] .location-card .info-row span {
    color: var(--text-muted, #4b5563) !important;
}

[data-theme="light"] .location-card .info-row strong {
    color: var(--text-main, #111827) !important;
}

/* 4. Section Separator Line inside the Card */
[data-theme="light"] .location-card .card-footer-details {
    border-top: 1px solid var(--border-color, #e5e7eb) !important;
}

/* 5. Map Canvas Frame (Right Side) */
[data-theme="light"] .map-container-landscape {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color, #e5e7eb) !important;
}

[data-theme="light"] .map-container-landscape iframe {
    filter: none !important;
    -webkit-filter: none !important;
}


/* ==========================================================================
   CAP TAG LIGHT THEME OVERRIDES
   ========================================================================== */

[data-theme="light"] .cap-tag {
    background-color: #f1f5f9;            /* Light slate background */
    color: var(--text-main, #111827);    /* Dark, readable text */
    border: 1px solid var(--border-color, #e5e7eb);
    transition: all 0.2s ease;
}

[data-theme="light"] .cap-tag i {
    color: var(--accent, #ff1e27);       /* Flame red icon accent */
}

/* Optional Hover Effect */
[data-theme="light"] .cap-tag:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}
/* ==========================================================================
   SYSTEM AUTHORIZATION LOGIN CARD - LIGHT THEME OVERRIDES
   ========================================================================== */

/* 1. Main Modal Card Container */
[data-theme="light"] .auth-card,
[data-theme="light"] .login-card,
[data-theme="light"] .system-auth-container {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color, #e5e7eb) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

/* 2. Headings & Subtitle Text */
[data-theme="light"] .auth-card h2,
[data-theme="light"] .login-card h2,
[data-theme="light"] .auth-title {
    color: var(--text-main, #111827) !important;
}

[data-theme="light"] .auth-card p,
[data-theme="light"] .login-card p,
[data-theme="light"] .auth-subtitle {
    color: var(--text-muted, #6b7280) !important;
}

/* 3. Warning / Error Alert Box */
[data-theme="light"] .auth-alert,
[data-theme="light"] .error-message,
[data-theme="light"] [class*="alert-danger"] {
    background-color: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    color: #991b1b !important;
}

[data-theme="light"] .auth-alert i,
[data-theme="light"] .error-message i {
    color: #dc2626 !important;
}

/* 4. Labels & Input Fields */
[data-theme="light"] .auth-card label,
[data-theme="light"] .login-card label,
[data-theme="light"] .input-label {
    color: var(--text-muted, #4b5563) !important;
}

[data-theme="light"] .auth-card input,
[data-theme="light"] .login-card input {
    background-color: #f8fafc !important;
    border: 1px solid var(--border-color, #cbd5e1) !important;
    color: var(--text-main, #111827) !important;
}

[data-theme="light"] .auth-card input:focus,
[data-theme="light"] .login-card input:focus {
    background-color: #ffffff !important;
    border-color: var(--accent, #ff1e27) !important;
    box-shadow: 0 0 0 3px rgba(255, 30, 39, 0.15) !important;
}

[data-theme="light"] .auth-card input::placeholder,
[data-theme="light"] .login-card input::placeholder {
    color: #9ca3af !important;
}





















/* ==========================================================================
   LIGHT THEME OVERRIDES ([data-theme="light"])
   ========================================================================== */

[data-theme="light"] {
    /* Core Variables */
    --bg-primary: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --text-main: #111827;            /* Dark slate for readable text */
    --text-muted: #6b7280;           /* Soft gray for secondary text */
    --accent: #ff1e27;               /* Signature flame red */
    --accent-hover: #dd131b;
    --success: #16a34a;
    --border-color: #e5e7eb;         /* Subtle visible gray border */
}

/* Global Light Mode Overrides */
[data-theme="light"] body {
    background-color: var(--bg-primary);
    color: var(--text-main);
}

/* Header & Navigation Overrides */
[data-theme="light"] .navbar-wrapper,
[data-theme="light"] .site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .top-banner {
    background: linear-gradient(90deg, #f1f5f9 0%, #fee2e2 50%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(255, 30, 39, 0.2);
}

[data-theme="light"] .banner-text {
    color: #334155;
}

[data-theme="light"] .logo-main-row,
[data-theme="light"] .logo-sub-row {
    color: var(--text-main);
}

[data-theme="light"] .admin-btn {
    color: var(--accent);
    border-color: rgba(255, 30, 39, 0.3);
}

[data-theme="light"] .admin-btn:hover {
    color: #ffffff;
}

/* Internal / Company Dark Views in Light Mode */
[data-theme="light"] .internal-view {
    background-color: var(--bg-primary);
    color: var(--text-main);
}

[data-theme="light"] .dark-hero {
    background: radial-gradient(circle at top center, rgba(255, 30, 39, 0.05) 0%, #ffffff 70%);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-title-dark,
[data-theme="light"] .card-title-dark,
[data-theme="light"] .dark-list li strong,
[data-theme="light"] .branch-title-dark {
    color: var(--text-main);
}

[data-theme="light"] .hero-lead-dark,
[data-theme="light"] .card-text-dark,
[data-theme="light"] .card-subtext-dark,
[data-theme="light"] .dark-list li,
[data-theme="light"] .contact-detail-item-dark {
    color: var(--text-muted);
}

[data-theme="light"] .dark-card {
    background: var(--bg-surface);
    border-color: var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Mobile & Submenus */
@media screen and (min-width: 869px) {
    [data-theme="light"] .nav-link {
        color: #4b5563;
    }
    [data-theme="light"] .nav-link:hover,
    [data-theme="light"] .nav-link.active {
        color: var(--accent);
    }
    [data-theme="light"] .dropdown-menu {
        background: var(--bg-surface);
        border-color: var(--border-color);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    [data-theme="light"] .dropdown-item {
        color: var(--text-main);
    }
}

@media screen and (max-width: 868px) {
    [data-theme="light"] .nav-menu {
        background-color: var(--bg-surface);
    }
    [data-theme="light"] .menu-toggle-btn {
        color: var(--text-main);
    }
    [data-theme="light"] .submenu {
        background-color: #f1f5f9;
    }
}

/* Interactive & Accessibility Controls */
[data-theme="light"] .accessibility-btn {
    background-color: #f1f5f9;
    color: var(--text-main);
    border-color: var(--border-color);
}

[data-theme="light"] .theme-toggle-btn {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-color);
}

/* Quill Editor Light Mode */
[data-theme="light"] .ql-toolbar.ql-snow {
    background: #f1f5f9;
    border-color: var(--border-color) !important;
}
[data-theme="light"] .ql-container.ql-snow {
    background: #ffffff;
    border-color: var(--border-color) !important;
    color: var(--text-main);
}

/* ==========================================================================
   FOOTER LIGHT THEME OVERRIDES
   ========================================================================== */

[data-theme="light"] .footer-wrapper {
    background: #f1f5f9;                 /* Crisp light slate background */
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .brand-subtext,
[data-theme="light"] .footer-group a,
[data-theme="light"] .footer-bottom p {
    color: var(--text-muted);
}

[data-theme="light"] .footer-group h4 {
    color: var(--text-main);
}

[data-theme="light"] .social-links a {
    color: var(--text-muted);
}

[data-theme="light"] .social-links a:hover,
[data-theme="light"] .footer-group a:hover {
    color: var(--accent);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .footer-embedded-logo {
    opacity: 0.95;                       /* High visibility for light backgrounds */
    border-color: var(--border-color);
    background-color: var(--bg-surface);
}


/* ==========================================================================
   ADMIN & DASHBOARD LIGHT THEME OVERRIDES
   ========================================================================== */

/* Forms & Inputs */
[data-theme="light"] .form-section {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background-color: #ffffff;
    border-color: var(--border-color);
    color: var(--text-main);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #9ca3af;
}

/* Dashboard Boards & Task Cards */
[data-theme="light"] .task-card {
    background: var(--bg-surface);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .task-title {
    color: var(--text-main);
}

[data-theme="light"] .task-actions {
    border-top-color: var(--border-color);
}

[data-theme="light"] .empty-state-card {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="light"] .empty-state-card h4 {
    color: var(--text-main);
}

/* Quill Rich Text Editor (Admin) */
[data-theme="light"] .ql-toolbar.ql-snow {
    background: #f1f5f9;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .ql-container.ql-snow {
    background: #ffffff;
    border-color: var(--border-color) !important;
    color: var(--text-main);
}

[data-theme="light"] .ql-stroke {
    stroke: #4b5563 !important;
}

[data-theme="light"] .ql-fill {
    fill: #4b5563 !important;
}

[data-theme="light"] .ql-picker {
    color: #4b5563 !important;
}

[data-theme="light"] .ql-editor.ql-blank::before {
    color: #9ca3af !important;
}

/* ==========================================================================
   LOCATION PAGE LIGHT THEME FIXES (White Button & White Right Card)
   ========================================================================== */

/* 1. Location Selector Tabs / Buttons */
[data-theme="light"] .branch-grid button,
[data-theme="light"] .location-tabs .tab-btn {
    background-color: #ffffff !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s ease;
}

[data-theme="light"] .branch-grid button:hover,
[data-theme="light"] .location-tabs .tab-btn:hover {
    background-color: #f8f9fa !important;
    border-color: var(--accent) !important;
}

[data-theme="light"] .branch-grid button.active,
[data-theme="light"] .location-tabs .tab-btn.active {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(255, 30, 39, 0.3);
}

/* 2. Right Location Card Container (Force White Background) */
[data-theme="light"] .location-layout-structure .dark-card,
[data-theme="light"] .location-info-card,
[data-theme="light"] .location-visual-panel {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .location-info-card h3,
[data-theme="light"] .location-info-card .card-title-dark,
[data-theme="light"] .location-visual-panel h3 {
    color: var(--text-main) !important;
}

[data-theme="light"] .location-info-card p,
[data-theme="light"] .location-info-card .contact-detail-item-dark,
[data-theme="light"] .location-visual-panel p {
    color: var(--text-muted) !important;
}

/* ==========================================================================
   HEADQUARTERS LOCATION CARD - LIGHT THEME OVERRIDES
   ========================================================================== */

/* 1. Card Container */
[data-theme="light"] .dark-card,
[data-theme="light"] .location-layout-structure > div:first-child,
[data-theme="light"] .location-info-card {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* 2. Headings & Main Text */
[data-theme="light"] .dark-card h3,
[data-theme="light"] .dark-card .card-title-dark,
[data-theme="light"] .dark-card strong {
    color: #111827 !important;
}

/* 3. Address & Subdued Details */
[data-theme="light"] .dark-card p,
[data-theme="light"] .dark-card .contact-detail-item-dark,
[data-theme="light"] .dark-card span {
    color: #4b5563 !important;
}

/* 4. Horizontal Separator / Border Line */
[data-theme="light"] .dark-card hr,
[data-theme="light"] .dark-card .email-row-dark,
[data-theme="light"] .dark-card [style*="border-top"] {
    border-top-color: #e5e7eb !important;
}

/* 5. Icons & Call Link Adjustments */
[data-theme="light"] .dark-card .red-icon,
[data-theme="light"] .dark-card [class*="badge"] {
    color: var(--accent) !important;
}

[data-theme="light"] .dark-card a[href^="tel:"] {
    color: #2563eb !important; /* Distinct blue for phone links */
}


/* ==========================================================================
   ADMIN REGISTER FORM - BASE & DARK THEME
   ========================================================================== */

.admin-register-card {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #070708;
    border: 1px solid rgba(255, 30, 39, 0.3);
    border-radius: 12px;
    color: #ffffff;
}

.admin-register-title {
    color: #ff1e27;
    margin-top: 0;
    text-align: center;
}

.admin-register-alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    background: rgba(255, 30, 39, 0.2);
    color: #ff1e27;
    border: 1px solid rgba(255, 30, 39, 0.4);
}

.admin-register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-register-form .form-group {
    display: flex;
    flex-direction: column;
}

.admin-register-form .form-label {
    display: block;
    font-size: 0.85rem;
    color: #8e8e93;
    margin-bottom: 4px;
}

.admin-register-form .form-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background-color: #111111;
    border: 1px solid #333333;
    color: #ffffff;
    box-sizing: border-box;
}

.btn-submit-admin {
    background-color: #ff1e27;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-submit-admin:hover {
    background-color: #dd131b;
}


/* ==========================================================================
   ADMIN REGISTER FORM - LIGHT THEME OVERRIDES
   ========================================================================== */

[data-theme="light"] .admin-register-card {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .admin-register-title {
    color: #ff1e27 !important;
}

[data-theme="light"] .admin-register-alert {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
}

[data-theme="light"] .admin-register-form .form-label {
    color: #4b5563 !important;
}

[data-theme="light"] .admin-register-form .form-input {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #111827 !important;
}

[data-theme="light"] .admin-register-form .form-input:focus {
    background-color: #ffffff !important;
    border-color: #ff1e27 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 30, 39, 0.15);
}



/* ==========================================================================
   SYSTEM AUTHORIZATION CARD - FORCE WHITE LIGHT THEME
   ========================================================================== */

/* 1. Main Login Box Container */
[data-theme="light"] div[class*="auth"],
[data-theme="light"] div[class*="login"],
[data-theme="light"] .modal-content,
[data-theme="light"] .card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

/* 2. Title & Subtitle Text */
[data-theme="light"] div[class*="auth"] h1,
[data-theme="light"] div[class*="auth"] h2,
[data-theme="light"] div[class*="auth"] h3,
[data-theme="light"] div[class*="login"] h1,
[data-theme="light"] div[class*="login"] h2,
[data-theme="light"] div[class*="login"] h3 {
    color: #111827 !important;
}

[data-theme="light"] div[class*="auth"] p,
[data-theme="light"] div[class*="login"] p {
    color: #6b7280 !important;
}

/* 3. Red Warning Alert Box */
[data-theme="light"] div[class*="auth"] div[class*="alert"],
[data-theme="light"] div[class*="login"] div[class*="alert"],
[data-theme="light"] div[class*="auth"] div[class*="error"],
[data-theme="light"] div[class*="login"] div[class*="error"] {
    background-color: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    color: #991b1b !important;
}

/* 4. Labels & Input Text Fields */
[data-theme="light"] div[class*="auth"] label,
[data-theme="light"] div[class*="login"] label {
    color: #4b5563 !important;
}

[data-theme="light"] div[class*="auth"] input,
[data-theme="light"] div[class*="login"] input {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #111827 !important;
}

[data-theme="light"] div[class*="auth"] input::placeholder,
[data-theme="light"] div[class*="login"] input::placeholder {
    color: #9ca3af !important;
}

[data-theme="light"] div[class*="auth"] input:focus,
[data-theme="light"] div[class*="login"] input:focus {
    background-color: #ffffff !important;
    border-color: #ff1e27 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 30, 39, 0.15) !important;
}









/* ==========================================================================
   AUTHENTICATION CARD - BASE & DARK THEME
   ========================================================================== */

.auth-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    background-color: #070708;
    border: 1px solid rgba(255, 30, 39, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-icon {
    font-size: 3rem;
    color: #ff1e27;
}

.auth-title {
    color: #ffffff;
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

.auth-subtitle {
    color: #8e8e93;
    font-size: 0.85rem;
}

.auth-alert {
    background: rgba(255, 30, 39, 0.15);
    border: 1px solid rgba(255, 30, 39, 0.5);
    color: #ff4d52;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-alert i {
    font-size: 1.2rem;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form .form-group:nth-child(2) {
    margin-bottom: 1.5rem;
}

.auth-form .form-label {
    display: block;
    color: #8e8e93;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.auth-form .form-input {
    width: 100%;
    padding: 10px;
    background-color: #111113;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.btn-auth-submit {
    width: 100%;
    background-color: #ff1e27;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-auth-submit:hover {
    background-color: #dd131b;
}


/* ==========================================================================
   AUTHENTICATION CARD - LIGHT THEME OVERRIDES
   ========================================================================== */

[data-theme="light"] .auth-card {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .auth-title {
    color: #111827 !important;
}

[data-theme="light"] .auth-subtitle {
    color: #6b7280 !important;
}

[data-theme="light"] .auth-alert {
    background-color: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    color: #991b1b !important;
}

[data-theme="light"] .auth-alert i {
    color: #dc2626 !important;
}

[data-theme="light"] .auth-form .form-label {
    color: #4b5563 !important;
}

[data-theme="light"] .auth-form .form-input {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #111827 !important;
}

[data-theme="light"] .auth-form .form-input::placeholder {
    color: #9ca3af !important;
}

[data-theme="light"] .auth-form .form-input:focus {
    background-color: #ffffff !important;
    border-color: #ff1e27 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 30, 39, 0.15) !important;
}

/* ==========================================================================
   NAVBAR LOGO THEME SWITCH
   ========================================================================== */

/* Default (Dark Theme) */
.brand-logo-img.logo-dark {
    display: block;
}
.brand-logo-img.logo-light {
    display: none;
}

/* Light Theme ([data-theme="light"]) */
[data-theme="light"] .brand-logo-img.logo-dark {
    display: none !important;
}
[data-theme="light"] .brand-logo-img.logo-light {
    display: block !important;
}
* Forces the off-white logo background to match pure white perfectly */
[data-theme="light"] .brand-logo-img.logo-light {
    filter: contrast(130%) brightness(108%);
    mix-blend-mode: multiply;
}


/* ==========================================================================
   FOOTER LOGO LIGHT MODE SWAP
   ========================================================================== */

/* Dark Mode Default */
.footer-logo.logo-dark {
    display: block;
}
.footer-logo.logo-light {
    display: none;
}

/* Light Mode Overrides */
[data-theme="light"] .footer-logo.logo-dark {
    display: none !important;
}

[data-theme="light"] .footer-logo.logo-light {
    display: block !important;
    mix-blend-mode: multiply;
    filter: contrast(130%) brightness(108%);
}

/* ==========================================================================
   FOOTER EMBEDDED LOGO LIGHT MODE SWITCH
   ========================================================================== */

/* Dark Mode Default */
.footer-embedded-logo.logo-dark {
    display: block;
}
.footer-embedded-logo.logo-light {
    display: none;
}

/* Light Mode Overrides */
[data-theme="light"] .footer-embedded-logo.logo-dark {
    display: none !important;
}

[data-theme="light"] .footer-embedded-logo.logo-light {
    display: block !important;
    mix-blend-mode: multiply;
    filter: contrast(130%) brightness(108%);
}

/* ==========================================================================
   NAVBAR LOGO LIGHT MODE FIX
   ========================================================================== */

[data-theme="light"] .brand-logo-img,
[data-theme="light"] .brand-logo-img.logo-light {
    mix-blend-mode: multiply !important;
    filter: contrast(160%) brightness(112%) !important;
}


/* ==========================================================================
   MODERN THEME TOGGLE BUTTON
   ========================================================================== */

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
    border-color: #ff1e27;
    box-shadow: 0 0 15px rgba(255, 30, 39, 0.3);
    transform: translateY(-1px);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

/* Icon Wrapper & Smooth Rotation */
.toggle-icon-wrapper {
    position: relative;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Default Dark State: Show Sun Icon (to toggle to Light) */
.icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #ff1e27;
}

.icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    color: #3b82f6;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES ([data-theme="light"])
   ========================================================================== */

[data-theme="light"] .theme-toggle-btn {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
    border-color: #ff1e27 !important;
    box-shadow: 0 0 12px rgba(255, 30, 39, 0.2) !important;
}

/* Rotate & Swap Icons in Light Mode */
[data-theme="light"] .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}



/* ==========================================================================
   2FA SECURITY SETUP CARD - BASE & DARK THEME
   ========================================================================== */

.auth-setup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.task-card-setup { 
  background: #070708; 
  border: 1px solid rgba(255, 30, 39, 0.2); 
  border-radius: 12px; 
  padding: 2.5rem 2rem; 
  text-align: center; 
  width: 100%;
  max-width: 380px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-header-setup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-header-setup i {
  color: #ff1e27;
  font-size: 1.75rem;
}

.card-header-setup h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.task-card-setup p {
  color: #8e8e93;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  transition: color 0.3s ease;
}

.qr-container-setup {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.qr-container-setup img { 
  display: block;
  width: 170px;
  height: 170px;
  max-width: 100%; 
  object-fit: contain;
  margin: 0 auto;
  border: none;
}

.task-card-setup input { 
  width: 100%; 
  padding: 12px; 
  box-sizing: border-box; 
  text-align: center; 
  font-size: 1.1rem; 
  font-weight: 600;
  letter-spacing: 6px; 
  background: #000000;
  border: 1px solid #333333;
  color: #ffffff;
  border-radius: 6px;
  outline: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.task-card-setup input:focus {
  border-color: #ff1e27;
  box-shadow: 0 0 8px rgba(255, 30, 39, 0.3);
}

.task-card-setup input::placeholder {
  letter-spacing: 2px;
  color: #444444;
  font-size: 0.9rem;
}

.task-card-setup button { 
  width: 100%; 
  padding: 12px; 
  background: #ff1e27; 
  color: #ffffff; 
  border: none; 
  cursor: pointer; 
  border-radius: 6px; 
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.task-card-setup button:hover {
  background: #d1131b;
}


/* ==========================================================================
   2FA SECURITY SETUP CARD - LIGHT MODE OVERRIDES
   ========================================================================== */

[data-theme="light"] .task-card-setup {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card-header-setup h2 {
  color: #111827;
}

[data-theme="light"] .task-card-setup p {
  color: #4b5563;
}

[data-theme="light"] .qr-container-setup {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .task-card-setup input {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #111827;
}

[data-theme="light"] .task-card-setup input::placeholder {
  color: #9ca3af;
}








/* ==========================================================================
   ADMIN DASHBOARD BASE & DARK THEME STYLES
   ========================================================================== */

.admin-dashboard-wrapper {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header Elements */
.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-title {
  color: #ffffff;
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.admin-subtitle, .section-subtitle {
  color: #8e8e93;
  margin: 0;
  transition: color 0.3s ease;
}

.admin-logout-btn {
  background: rgba(255, 30, 39, 0.15);
  color: #ff1e27;
  border: 1px solid rgba(255, 30, 39, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.admin-logout-btn:hover {
  background: #ff1e27;
  color: #ffffff;
}

.icon-accent {
  color: #ff1e27;
}

/* KPI Summary Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: #070708;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.kpi-icon {
  padding: 12px;
  border-radius: 8px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-warning { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.kpi-danger  { background: rgba(255, 30, 39, 0.15); color: #ff1e27; }
.kpi-success { background: rgba(0, 210, 106, 0.15); color: #00d26a; }
.kpi-info    { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.kpi-value {
  color: #ffffff;
  margin: 0;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.kpi-label {
  color: #8e8e93;
  margin: 0;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

/* Container Cards */
.admin-card {
  background: #070708;
  border: 1px solid rgba(255, 30, 39, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-title {
  color: #ffffff;
  margin-top: 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.card-heading-danger {
  color: #ff1e27;
  margin-top: 0;
}

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

/* Forms, Inputs & Buttons */
.banner-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.banner-checkbox-label {
  color: #e5e5ea;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.admin-input, .admin-select, .admin-textarea {
  padding: 8px 12px;
  border-radius: 6px;
  background: #111113;
  border: 1px solid #333333;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: #ff1e27;
}

.admin-form-box {
  background: #111113;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease;
}

.form-grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
}

.form-grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.file-input-wrapper {
  overflow: hidden;
  width: 100%;
}

.admin-file-input {
  font-size: 0.75rem;
  color: #8e8e93;
  width: 100%;
}

.form-label, .form-label-danger {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.form-label { color: #8e8e93; }
.form-label-danger { color: #ff1e27; font-weight: bold; text-transform: uppercase; }

.admin-btn-primary {
  background: #ff1e27;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.admin-btn-primary:hover {
  background: #d1131b;
}

.admin-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e5ea;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.admin-btn-info {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-btn-info-sm {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.75rem;
}

.admin-btn-danger-outline {
  background: rgba(255, 30, 39, 0.15);
  color: #ff4d52;
  border: 1px solid rgba(255, 30, 39, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.75rem;
}

.admin-btn-danger-sm {
  background: #ff1e27;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.75rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: #e5e5ea;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.admin-table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  color: #8e8e93;
  padding: 10px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease;
}

.table-link { color: #3b82f6; text-decoration: none; }
.text-truncate-snippet { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-table-cell { padding: 15px; text-align: center; color: #8e8e93; }

.select-status-success { color: #00d26a !important; }
.select-status-info    { color: #3b82f6 !important; }
.select-status-warning { color: #ffc107 !important; }
.select-status-danger  { color: #ff1e27 !important; }

.table-img-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #333333;
}

.table-no-img {
  width: 40px;
  height: 40px;
  background: #111113;
  border: 1px dashed #333333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
  font-size: 0.65rem;
}

.actions-cell { display: flex; gap: 6px; padding: 10px 0; }
.actions-flex { display: flex; gap: 4px; align-items: center; }

/* Analytics Charts */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.chart-box {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chart-title { color: #ffffff; margin-top: 0; font-size: 0.95rem; transition: color 0.3s ease; }
.chart-grid-line { stroke: #222222; stroke-dasharray: 2; transition: stroke 0.3s ease; }
.chart-axis-line { stroke: #333333; transition: stroke 0.3s ease; }
.chart-text-muted { fill: #8e8e93; transition: fill 0.3s ease; }

.donut-container { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 10px; }
.donut-track { stroke: #18181b; transition: stroke 0.3s ease; }
.donut-total-val { fill: #ffffff; transition: fill 0.3s ease; }
.donut-total-lbl { fill: #8e8e93; transition: fill 0.3s ease; }

.donut-legend { font-size: 0.8rem; line-height: 1.8; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-text { color: #e5e5ea; transition: color 0.3s ease; }

.bg-warning { background: #ffc107; }
.bg-success { background: #00d26a; }
.bg-info    { background: #3b82f6; }

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content-card {
  background: #070708;
  border: 1px solid rgba(255, 30, 39, 0.3);
  border-radius: 12px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  box-sizing: border-box;
  color: #e5e5ea;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.modal-title { color: #ff1e27; margin: 0; }
.modal-id { color: #8e8e93; font-size: 0.9rem; }
.modal-close-btn { background: none; border: none; color: #8e8e93; font-size: 1.5rem; cursor: pointer; }

.modal-meta { margin-bottom: 15px; font-size: 0.9rem; line-height: 1.6; }
.text-bold { color: #ffffff; transition: color 0.3s ease; }
.text-link { color: #3b82f6; }

.modal-message-body {
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-reply-textarea {
  width: 100%;
  font-family: Arial, sans-serif;
  resize: vertical;
}

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-btn-cancel {
  background: #222222;
  color: #cccccc;
  border: 1px solid #444444;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Utilities */
.flex-1 { flex: 1; min-width: 260px; }
.full-width { width: 100%; }
.m-0 { margin: 0; }
.m-top-0 { margin-top: 0; }
.d-none { display: none; }
.d-inline { display: inline; }
.w-65 { width: 65px; }
.w-70 { width: 70px; }
.w-90 { width: 90px; }
.w-100 { width: 100px; }
.w-110 { width: 110px; }
.w-120 { width: 120px; }
.min-w-750 { min-width: 750px; }
.min-w-800 { min-width: 800px; }
.min-w-1100 { min-width: 1100px; }
.fw-bold { font-weight: bold; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; }


/* ==========================================================================
   ADMIN DASHBOARD - LIGHT MODE OVERRIDES ([data-theme="light"])
   ========================================================================== */

[data-theme="light"] .admin-title,
[data-theme="light"] .card-title,
[data-theme="light"] .kpi-value,
[data-theme="light"] .chart-title,
[data-theme="light"] .text-bold {
  color: #111827;
}

[data-theme="light"] .admin-subtitle,
[data-theme="light"] .section-subtitle,
[data-theme="light"] .kpi-label,
[data-theme="light"] .admin-table th,
[data-theme="light"] .empty-table-cell,
[data-theme="light"] .modal-id,
[data-theme="light"] .form-label {
  color: #4b5563;
}

[data-theme="light"] .admin-card,
[data-theme="light"] .kpi-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .admin-form-box {
  background: #f9fafb;
}

[data-theme="light"] .admin-input,
[data-theme="light"] .admin-select,
[data-theme="light"] .admin-textarea {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
}

[data-theme="light"] .banner-checkbox-label,
[data-theme="light"] .legend-text,
[data-theme="light"] .admin-table {
  color: #1f2937;
}

[data-theme="light"] .admin-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

[data-theme="light"] .admin-btn-secondary:hover {
  background: #e5e7eb;
}

[data-theme="light"] .admin-table th,
[data-theme="light"] .admin-table td {
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="light"] .table-no-img {
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  color: #9ca3af;
}

[data-theme="light"] .chart-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

[data-theme="light"] .chart-grid-line { stroke: #e5e7eb; }
[data-theme="light"] .chart-axis-line { stroke: #d1d5db; }
[data-theme="light"] .chart-text-muted { fill: #6b7280; }

[data-theme="light"] .donut-track { stroke: #e5e7eb; }
[data-theme="light"] .donut-total-val { fill: #111827; }
[data-theme="light"] .donut-total-lbl { fill: #6b7280; }

[data-theme="light"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .modal-content-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #1f2937;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-header {
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="light"] .modal-message-body {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #1f2937;
}

[data-theme="light"] .modal-btn-cancel {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

[data-theme="light"] .modal-btn-cancel:hover {
  background: #e5e7eb;
}
/* Keep Admin Login button text & icon white in Light Mode */
/* Maintain constant white text & icons for Admin and Active Links */



/* Keep Admin button red with white text across ALL states (active, clicked, light mode) */
.admin-btn,
.admin-btn.active,
.admin-btn:focus,
.admin-btn:active,
.admin-btn:visited,
[data-theme="light"] .admin-btn,
[data-theme="light"] .admin-btn.active,
[data-theme="light"] .admin-btn * {
  display: inline-flex !important; /* Prevents display: none or hiding */
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #ff1e27 !important; /* Constant Red Background */
  color: #ffffff !important; /* Constant White Text & Icon */
}

/* Ensure hover state remains red/darker red */
.admin-btn:hover,
[data-theme="light"] .admin-btn:hover {
  background-color: #d1131b !important;
  color: #ffffff !important;
}









/* Base Call Us Button Styling */
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background-color: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 30, 39, 0.6);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.call-btn i {
  font-size: 1.1rem;
  color: #ff1e27 !important;
  transition: color 0.15s ease-in-out;
}

/* Hover State */
.call-btn:hover {
  background-color: #ff1e27;
  border-color: #ff1e27;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 30, 39, 0.35);
}

.call-btn:hover i {
  color: #ffffff !important;
}

/* Pressed / Active State (Click Effect) */
.call-btn:active {
  transform: scale(0.95) translateY(2px); /* Slight press-down shrink */
  background-color: #d1131b;
  border-color: #d1131b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Light Mode Adaptations */
[data-theme="light"] .call-btn {
  color: #111827 !important;
  border: 1px solid #ff1e27;
}

[data-theme="light"] .call-btn i {
  color: #ff1e27 !important;
}

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

[data-theme="light"] .call-btn:hover i {
  color: #ffffff !important;
}

[data-theme="light"] .call-btn:active {
  background-color: #d1131b;
  color: #ffffff !important;
}

/* Base Call Us Button Styling */
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background-color: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 30, 39, 0.6);
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.call-btn i {
  font-size: 1.1rem;
  color: #ff1e27 !important;
  transition: color 0.15s ease-in-out;
}

/* Hover State */
.call-btn:hover {
  background-color: #ff1e27;
  border-color: #ff1e27;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 30, 39, 0.35);
}

.call-btn:hover i {
  color: #ffffff !important;
}

/* Click / Press Feedback Effect */
.call-btn:active {
  transform: scale(0.95) translateY(2px);
  background-color: #d1131b !important;
  border-color: #d1131b !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.call-btn:active i {
  color: #ffffff !important;
}

/* Light Mode Adaptations */
[data-theme="light"] .call-btn {
  color: #111827 !important;
  border: 1px solid #ff1e27;
}

[data-theme="light"] .call-btn i {
  color: #ff1e27 !important;
}

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

[data-theme="light"] .call-btn:hover i {
  color: #ffffff !important;
}

[data-theme="light"] .call-btn:active {
  background-color: #d1131b !important;
  color: #ffffff !important;
}


/* Fixed Floating Call Button Container */
.call-btn-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999; /* Keeps button above all other elements */
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 12px 20px;
  background-color: #ff1e27;
  color: #ffffff !important;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 30, 39, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.call-btn-floating i {
  font-size: 1.3rem;
  color: #ffffff !important;
}

/* Hover Effect */
.call-btn-floating:hover {
  background-color: #d1131b;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 30, 39, 0.5);
  color: #ffffff !important;
}

/* Click / Pressed Tactile Feedback */
.call-btn-floating:active {
  transform: scale(0.93) translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background-color: #b00f16 !important;
}

/* Optional: Mobile Optimization (Icon-Only on Small Screens) */
@media (max-width: 576px) {
  .call-btn-floating {
    padding: 14px;
    border-radius: 50%;
    bottom: 16px;
    right: 16px;
  }
  
  .call-btn-floating .call-text {
    display: none; /* Shows icon only on small screens for cleaner layout */
  }

  .call-btn-floating i {
    font-size: 1.5rem;
  }
}






/* Modern Professional Floating Call Widget */
.pro-float-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 10px;
  background: #0f1015; /* Dark background matching theme */
  border: 1px solid rgba(255, 30, 39, 0.4);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 30, 39, 0.15);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  user-select: none;
}

/* Icon Container with Gradient Fill */
.call-icon-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ff1e27, #d1131b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(255, 30, 39, 0.4);
}

.call-icon-box i {
  color: #ffffff !important;
  font-size: 1.35rem;
  transition: transform 0.3s ease;
}

/* Typography Layout */
.call-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.call-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ff1e27;
  font-weight: 700;
  line-height: 1.1;
}

.call-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.2;
}

/* Subtle Pulse Outer Ring */
.call-pulse-ring {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 30, 39, 0.4);
  z-index: 1;
  animation: proPulse 2s infinite;
}

@keyframes proPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Hover State */
.pro-float-call:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #ff1e27;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 30, 39, 0.35);
}

.pro-float-call:hover .call-icon-box i {
  transform: rotate(12deg) scale(1.1);
}

/* Active Pressed Effect */
.pro-float-call:active {
  transform: translateY(0) scale(0.96) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Light Mode Support */
[data-theme="light"] .pro-float-call {
  background: #ffffff;
  border-color: rgba(255, 30, 39, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 15px rgba(255, 30, 39, 0.1);
}

[data-theme="light"] .call-number {
  color: #111827 !important;
}

/* Mobile Responsive Optimization */
@media (max-width: 576px) {
  .pro-float-call {
    bottom: 20px;
    right: 20px;
    padding: 6px;
  }
  
  .call-content {
    display: none; /* Icon-only floating button on mobile screens */
  }

  .pro-float-call {
    border-radius: 50%;
  }

  .call-pulse-ring {
    left: 6px;
    top: 6px;
  }
}

/* ==========================================
   DESKTOP STYLES (Default / Large Screens)
   ========================================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  padding-top: 0;
}

.theme-toggle-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  cursor: pointer;
}

.action-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
}

.action-buttons-row .contact-btn,
.action-buttons-row .admin-btn {
  flex: initial;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  border-radius: 6px;
}

/* Floating call button hide helper */
.pro-float-call.is-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ==========================================
   MOBILE STYLES (Applied inside Mobile Drawer)
   ========================================== */
@media (max-width: 768px) {
  .nav-actions {
    flex-direction: column;
    width: 100%;
    padding-top: 15px;
    gap: 10px;
  }

  .theme-toggle-btn {
    width: 100%;
    padding: 10px 16px;
  }

  .action-buttons-row {
    width: 100%;
  }

  .action-buttons-row .contact-btn,
  .action-buttons-row .admin-btn {
    flex: 1;
    padding: 10px 8px;
  }
}
/* Prevent horizontal page overflow on small screens */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  /* Keep all containers within viewport bounds */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  /* Wrap long headings and prevent text cut-off */
  h1, h2, h3, h4, p {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Scale large headline text down for mobile */
  h1, .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.25;
  }

  /* Ensure card stats/boxes fit inside container margins */
  .stat-card, .info-box, .card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* ==========================================================================
   THEMED RICH TEXT EDITOR & FORM OVERRIDES
   ========================================================================== */

/* Compact toolbar styling for table cell editors */
.ql-toolbar.ql-snow {
    border-color: var(--border-color) !important;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background: var(--bg-input) !important;
    padding: 4px 8px;
}

.ql-container.ql-snow {
    border-color: var(--border-color) !important;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
}

.add-form-editor {
    min-height: 120px;
}

.table-editor {
    min-height: 80px;
    max-width: 280px;
}

.editor-wrapper {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

/* Dynamically styled Quill editor text area */
.ql-editor,
.ql-editor p,
.ql-editor span,
.ql-editor * {
    color: var(--text-main) !important; /* Theme-aware dynamic text color */
}

.ql-editor {
    min-height: 120px;
    background-color: var(--bg-card) !important;
}

/* Dynamic Placeholder Styling */
.ql-editor.ql-blank::before {
    color: var(--text-muted) !important;
    font-style: italic;
}

/* Compact Editor Variant for Tables */
.table-editor .ql-editor {
    min-height: 60px;
}

/* Toolbar Icon & Picker Colors */
.ql-stroke { 
    stroke: var(--text-muted) !important; 
}

.ql-fill { 
    fill: var(--text-muted) !important; 
}

.ql-picker { 
    color: var(--text-muted) !important; 
}

/* Active State for Toolbar Controls */
.ql-active .ql-stroke, 
.ql-picker-label.ql-active { 
    stroke: var(--accent) !important; 
    color: var(--accent) !important; 
}

.ql-active .ql-fill { 
    fill: var(--accent) !important; 
}













