﻿
:root {
    --bs-font-sans-serif: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 0.95rem;
    --bs-body-line-height: 1.6;
    --bs-primary: #3B82F6;
    --bs-secondary: #64748B;
    --bs-success: #22C55E;
    --bs-danger: #EF4444;
    --bs-warning: #F59E0B;
    --bs-info: #06B6D4;
    --bs-dark: #0F172A;
    --neutral-50: #F8FAFC;
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0;
    --neutral-300: #CBD5E1;
    --neutral-400: #94A3B8;
    --neutral-500: #64748B;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1F2937;
    --neutral-900: #0F172A;
    --bs-border-radius: 0.5rem;
    --bs-border-radius-lg: 0.75rem;
    --bs-border-color: rgba(15, 23, 42, 0.12);
    --elev-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --elev-2: 0 4px 6px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --ring: 0 0 0 .25rem rgba(59,130,246, .25);
    /* Subtle backgrounds (Bootstrap 5.3-friendly) */
    --bs-primary-bg-subtle: #E8F0FE;
    --bs-secondary-bg-subtle: #F1F5F9;
    --bs-success-bg-subtle: #DCFCE7;
    --bs-danger-bg-subtle: #FEE2E2;
    --bs-warning-bg-subtle: #FEF3C7;
    --bs-info-bg-subtle: #CFFAFE;
}

/* Dark mode mapping (Velzon uses [data-layout-mode="dark"]) */
[data-layout-mode="dark"] {
    --bs-border-color: rgba(255, 255, 255, 0.12);
    --bs-primary-bg-subtle: rgba(59,130,246, .15);
    --bs-secondary-bg-subtle: rgba(100,116,139,.15);
    --bs-success-bg-subtle: rgba(34,197,94,.15);
    --bs-danger-bg-subtle: rgba(239,68,68,.15);
    --bs-warning-bg-subtle: rgba(245,158,11,.18);
    --bs-info-bg-subtle: rgba(6,182,212,.15);
}

/* Typography */
body {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    color: var(--neutral-800);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--neutral-800);
}

h1 {
    font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
}

h2 {
    font-size: clamp(1.5rem, 1.6vw + 1rem, 1.875rem);
}

h3 {
    font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: .95rem;
}

/* Cards */
.card {
    border-radius: var(--bs-border-radius-lg);
    border-color: var(--bs-border-color) !important;
    box-shadow: var(--elev-1);
}

.card-header {
    border-bottom-color: var(--bs-border-color) !important;
}

.card:hover {
    box-shadow: var(--elev-2);
}

/* Buttons */
.btn {
    border-radius: var(--bs-border-radius);
}

    .btn:focus-visible {
        box-shadow: var(--ring);
    }

/*.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}*/

.navbar-menu .navbar-nav .nav-link:hover {
    color: #dc1b3c !important;
}


.navbar-menu .navbar-nav .nav-link.active {
    color: #dc1b3c !important;
}

.navbar-menu .navbar-nav .nav-sm .nav-link:hover {
    color: #dc1b3c !important;
}



.btn-outline-primary:hover {
    color: #fff;
}

.btn-ghost-secondary {
    color: var(--neutral-600);
}

    .btn-ghost-secondary:hover {
        color: var(--neutral-800);
    }

/* Forms */
.form-control,
.form-select {
    border-color: var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    min-height: 2.75rem;
}

    .form-control:focus,
    .form-select:focus {
        box-shadow: var(--ring);
        border-color: var(--bs-primary);
    }

.form-check-input:focus {
    box-shadow: var(--ring);
    border-color: var(--bs-primary);
}

.auth-pass-inputgroup .btn,
.password-addon {
    color: var(--neutral-500);
}

    .auth-pass-inputgroup .btn:hover {
        color: var(--neutral-700);
    }

/* Tables */
.table {
    vertical-align: middle;
}

    .table thead th {
        background: var(--bs-secondary-bg-subtle)!important;
        border-bottom-color: var(--bs-border-color)!important;
    }

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(15, 23, 42, 0.02);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(59,130,246, 0.06);
}

/* Badges/Chips */
.badge {
    border-radius: 999px;
}

/* Navbar/Sidebar (Velzon structure) */
.navbar-menu .navbar-nav .nav-link {
    color: var(--neutral-800);
}

[data-layout-mode="dark"] .navbar-menu .navbar-nav .nav-link {
    color: #fff;
}

/*.navbar-menu .navbar-nav .nav-link:hover {
    color: var(--bs-primary);
}

.navbar-menu .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

.navbar-menu .navbar-nav .nav-sm .nav-link:hover {
    color: var(--bs-primary) !important;
}*/

/* Utilities migrated from inline styles */
.bg-theme-color {
    background: var(--bs-primary-bg-subtle) !important;
}

.filterRev.selected {
    background: var(--bs-primary) !important;
    color: #fff !important;
}

span.clsord {
    text-align: center !important;
}

/* Auth */
.auth-brand-img {
    width: 100%;
    height: 215px;
    object-fit: contain;
}

/* OTP */
.otp-box {
    --size: 3.25rem;
    width: var(--size);
    height: var(--size);
    font-weight: 600;
    letter-spacing: .05em;
}

.countdown-timer {
    background: var(--neutral-50);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 12px 16px;
    margin: 12px 0 8px;
    text-align: center;
    font-size: 1rem;
    color: var(--neutral-700);
}

    .countdown-timer .time-left {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--bs-danger);
        margin: 0 .25rem;
    }

    .countdown-timer.expired {
        background: var(--bs-warning-bg-subtle);
        color: #7c5c01;
    }

/* Pricing cards */
.order-card {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
}

    .order-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--elev-2);
    }

    .order-card.active {
        border-color: var(--bs-primary);
        background-color: var(--bs-primary-bg-subtle);
        box-shadow: 0 0 0 2px rgba(59,130,246,.15);
    }

/* Offcanvas chat */
.chat-messages-area {
    background: var(--neutral-50);
    max-height: 75vh;
}

/* Header avatar sizing consistency */
.header-profile-user {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Focus visible for key interactive elements */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.form-check-input:focus-visible {
    box-shadow: var(--ring);
    outline: 0;
}

/* Summernote/TinyMCE containment helpers */
.summernote,
textarea.summernote {
    min-height: 180px;
}

/* DataTables minor harmonization */
.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link:focus {
    box-shadow: var(--ring);
}

/* Small helpers */
.card-title + .text-muted {
    margin-top: .125rem;
}

.table-card {
    border-radius: var(--bs-border-radius-lg);
}

.avatar-title {
    border-radius: 999px;
}
