:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --border: #E2E8F0;
    --text: #1E293B;
    --text-muted: #64748B;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.glass-premium {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.btn-modern {
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modern:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
}
body:not(.admin) {
    padding-top: 80px;

}
body.admin:not(.dark) {
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
}
section {
    padding: 60px 8%;
    scroll-margin-top: 90px;

}

h1, h2, h3 {
    margin: 0 0 12px;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

/* ===== GLOBAL LAYOUT RESET ===== */
html, body {
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== TOP BAR ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 280px;                 /* SAME AS SIDEBAR WIDTH */
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
}

/* ===== SIDEBAR (REFERENCE-MATCHED) ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;                
    height: 100vh;
    background: linear-gradient(180deg, #0b1220, #020617);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1e293b;
    z-index: 1100;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #1e293b;
}

.logo {
    background: transparent; 
    width: auto;
    height: auto;
    border-radius: 0;
    padding: 0;
}

.logo i {
    font-size: 24px;
    color: #f59e0b; 
}

.logo img {
    width: 85px;      
    height: auto;    
}

.sidebar-brand .brand-text {
    line-height: 1.2;
}

.sidebar-brand .brand-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.sidebar-brand .brand-sub {
    font-size: 12px;
    color: #94a3b8;
}
.sidebar-nav{
    display:flex;
    flex-direction:column;
    height:40%;
}

.sidebar-nav a.logout{
    margin-top:auto;
    color:#60a5fa;
}



/* Logout */
.nav-item.logout {
    margin-top: auto;
    color: #60a5fa;
}

/* Hover */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Active (REFERENCE STYLE) */
.nav-item.active {
    background: rgba(245, 158, 11, 0.14);
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
    padding-left: 20px;
}

/* Logout pinned bottom */
.nav-item.logout {
    margin-top:45px;
    color: #60a5fa;
}

/* ===== COMPACT BRANCH SELECTOR (REFERENCE MATCH) ===== */

.branch-select {
    padding: 5px 20px;
    margin-bottom: 6px;
}

.branch-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.branch-select select {
    width: 100%;
    height: 34px;               
    background: #020617;
    border: 1px solid #1e293b;
    color: #e5e7eb;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}

.admin .main {
    margin-left: 280px;          
    margin-top: 56px;            
    padding: 20px 30px;
    min-height: calc(100vh - 56px);
    background: #f5f7fa;
}


.main h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.card {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 26px;
    border: 1px solid #e5e7eb;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.06),
        0 4px 12px rgba(0,0,0,0.04);

    backdrop-filter: blur(8px);
}


.btn {
    background: #f59e0b;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* === DASHBOARD CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.stat-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #111827;
}

/* === STATUS BADGES (UPDATED) === */
.status-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== MODERN PIPELINE ===== */

.pipeline-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 10px;
    overflow-x: auto;
}

/* STEP */
.pipeline-step-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    text-align: center;
}

/* CIRCLE */
.pipeline-step-modern .circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;

    /* ✅ NEW FIX */
    border: 1px solid rgba(0, 0, 0, 0.08);

    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition: all 0.2s ease;
}
.pipeline-step-modern .circle i {
    opacity: 0.95;
}
body.dark .pipeline-step-modern .circle {
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.08);
}
body.dark .pipeline-step-modern .circle i {
    opacity: 0.9;
    font-size: 16px;
}

/* LABEL */
.pipeline-step-modern span {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.pipeline-step-modern.active .circle {
    outline: 3px solid rgba(245,158,11,0.4);
}

/* COUNT */
.pipeline-step-modern small {
    font-size: 12px;
    color: #6b7280;
}

/* LINE CONNECTOR */
.line {
    background: #cbd5e1;
    opacity: 0.5;
}

body.dark .line {
    background: #334155;
    opacity: 0.6;
}
/* ACTIVE STEP */
.pipeline-step-modern.active .circle {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ===== LIGHT MODE (SOFT COLORS) ===== */

.bg-appointment {
    background: #e2e8f0;
    color: #475569;
}

.bg-payment {
    background: #dbeafe;
    color: #1d4ed8;
}

.bg-ongoing {
    background: #ede9fe;
    color: #5b21b6;
}

.bg-delivery {
    background: #cffafe;
    color: #0e7490;
}

.bg-backjob {
    background: #fef3c7;
    color: #92400e;
}

.bg-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.bg-completed {
    background: #dcfce7;
    color: #166534;
}

.pipeline-step-modern {
    cursor: pointer;
    transition: all 0.25s ease;
}

.pipeline-step-modern:hover {
    transform: translateY(-3px);
}

.pipeline-step-modern.active .circle {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* === TABLE STYLE === */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

th {
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 10px 16px;
}

body:not(.dark) td {
    background: transparent; 
    padding: 16px;
    font-size: 14px;
    color: #1e293b;
    transition: 0.25s ease;
}

/* Rounded row cards */
tr td:first-child {
    border-radius: 10px 0 0 10px;
}
tr td:last-child {
    border-radius: 0 10px 10px 0;
}
tr:hover td:not(.no-hover) {
    background: #a8abad;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
/* ===== TOPBAR CONTENT ===== */

.topbar {
    position: fixed;
    top: 0;
    left: 280px;       
    right: 0;          
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}
/* ===== FINAL ROLE HEADER FIX ===== */
.role-label {
    display: block;
    width: 100%;

    
    color: #111827;

    padding: 14px 18px;
    border-radius: 10px;

    font-weight: 600;

    box-sizing: border-box;

    margin: 6px 0; /* 🔥 THIS FIXES THE “CUT LOOK” */
}


/* Topbar Search */
.topbar-search {
    position: relative;
    width: 360px;
}

.topbar-search input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 44px;   /* icon space */
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 13px;
    box-sizing: border-box;
}

.topbar-search input::placeholder {
    color: #9ca3af;
}

.topbar-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

/* Right section */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notification */
.topbar-icon {
    position: relative;
    font-size: 18px;
    cursor: pointer;
}

.notif-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
}

/* User */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* USER CONTAINER */
.user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* AVATAR */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e5e7eb;
    font-weight: 600;
}

/* 🔥 THIS FIXES YOUR PROBLEM */
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* USERNAME INLINE */
.user-name-inline {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* DROPDOWN ARROW */
.dropdown-arrow {
    font-size: 12px;
    color: #6b7280;
}
body.dark .user-avatar {
    background: #334155;
    color: #f1f5f9;
}

body.dark .user-name-inline {
    color: #f9fafb;
}

body.dark .dropdown-arrow {
    color: #94a3b8;
}
/* USER TEXT GROUP */
.user-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* NAME */
.user-name-inline {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* ROLE */
.user-role-inline {
    font-size: 12px;
    color: #6b7280;
}

/* DROPDOWN CONTAINER */

/* DROPDOWN BOX */
.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;

    width: 200px;
    background: #ffffff;
    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    padding: 8px;
    display: none;
    z-index: 999;
}

/* SHOW */
.user-dropdown.show {
    display: block;
}

/* ITEMS */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;
    border-radius: 8px;

    text-decoration: none;
    font-size: 14px;
    color: #111827;

    transition: 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

/* LOGOUT STYLE */
.dropdown-item.logout {
    color: #ef4444;
}

/* DIVIDER */
.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}

body.dark .user-dropdown {
    background: #0f172a;
    border: 1px solid #1e293b;
}

body.dark .dropdown-item {
    color: #e5e7eb;
}

body.dark .dropdown-item:hover {
    background: #1e293b;
}

body.dark .dropdown-divider {
    background: #334155;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.user-role {
    font-size: 11px;
    color: #6b7280;
}

/* =========================
   TOPBAR DARK MODE FIX
========================= */

/* ICON BUTTONS */
body.dark .topbar-icon {
    background: #1e293b;
    color: #e5e7eb;
}

body.dark .topbar-icon:hover {
    background: #334155;
}

/* USER AVATAR */
body.dark .user-avatar {
    background: #334155;
    color: #e5e7eb;
}

/* USER TEXT */
body.dark .user-name {
    color: #f9fafb;
}

body.dark .user-role {
    color: #94a3b8;
}

/* DROPDOWN ARROW */
body.dark .dropdown-arrow {
    color: #94a3b8;
}

/* TOGGLE CONTAINER (IMPORTANT) */
body.dark .toggle-ui {
    background: #020617;
    border: 1px solid #1e293b;
}

/* TOGGLE ICONS */
body.dark .toggle-ui .sun {
    color: #f59e0b;
}

body.dark .toggle-ui .moon {
    color: #60a5fa;
}


.dropdown-arrow {
    font-size: 12px;
    color: #6b7280;
}

/* === LOGIN PAGE === */
.login-body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1f2933);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 380px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    text-align: center;
}

.login-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #f59e0b; /* Rholance accent */
}

.login-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

.form-group {
    width: 100%;
    text-align: left;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 13px;
    color: #374151;
    margin-bottom: 5px;
    display: block;
}

/* Login button ONLY inside modal */
.login-modal-content .login-btn {
    width: 100%;
    height: 48px;

    border-radius: 12px;

    background: linear-gradient(135deg, #f59e0b, #d97706);

    border: none;

    font-size: 15px;
    font-weight: 600;

    color: #ffffff;

    cursor: pointer;

    transition: all 0.3s ease;

}

.login-modal-content .login-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(245,158,11,0.4),
        0 0 15px rgba(245,158,11,0.3);
}

.login-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #6b7280;
}
/* === LOGIN ERROR === */
.login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}
/* === DARK MODE TOGGLE === */
.darkmode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 13px;
    color: #374151;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #f59e0b;
}

input:checked + .slider:before {
    transform: translateX(20px);
}
/* ============================= */
/* DARK MODE – FORCE OVERRIDES   */
/* ============================= */

body.dark {
    background: #0f172a;
    color: #e5e7eb;
}

/* Main content area */
body.dark .main {
    background: #0f172a;
}

/* Cards */
body.dark .card,
body.dark .stat-card {
    background: #1e293b;
    color: #e5e7eb;
}

/* Dashboard cards text */
body.dark .stat-title {
    color: #9ca3af;
}

body.dark .stat-value {
    color: #f9fafb;
}

/* Tables */
body.dark table {
    background: transparent;
}

body.dark th {
    color: #9ca3af;
}

body.dark td {
    color: #e5e7eb;
    border-color: #334155;
}

/* Sidebar */
body.dark .sidebar {
    background: #020617;
}

body.dark .sidebar a {
    color: #cbd5f5;
}

body.dark .sidebar a:hover {
    background: #1e293b;
}

/* Top bar */
body.dark .topbar {
    background: #020617;
    border-bottom: 1px solid #1e293b;
}

/* LEFT TITLE */

.topbar-left{
    flex:1;
}

.page-title{
    font-size:18px;
    font-weight:600;
    color:#1e3a8a;
}


/* SEARCH */

.topbar-search{
    flex:2;
    position:relative;
    max-width:500px;
}

.topbar-search input{
    width:100%;
    padding:10px 14px 10px 36px;
    border-radius:8px;
    border:1px solid #d1d5db;
}

.topbar-search i{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    color:#9ca3af;
}


/* RIGHT SIDE */

.topbar-right{
    flex:1;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:18px;
}


/* ICON BUTTON */

.topbar-icon{
    width:36px;
    height:36px;
    border-radius:50%;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.topbar-icon:hover{
    background:#e5e7eb;
}


/* NOTIFICATION DOT */

.notif-dot{
    position:absolute;
    width:8px;
    height:8px;
    background:#ef4444;
    border-radius:50%;
    margin-top:-18px;
    margin-left:10px;
}


/* USER SECTION */

.topbar-user{
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
}

.user-avatar{
    width:36px;
    height:36px;
    border-radius:50%;
    background:#e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
}

.user-info{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.user-name{
    font-weight:600;
}

.user-role{
    font-size:12px;
    color:#6b7280;
}

/* Inputs & selects */
body.dark input,
body.dark select,
body.dark textarea {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #334155;
}

/* Buttons */
body.dark .btn {
    background: #f59e0b;
    color: #111827;
}
/* === SETTINGS PAGE === */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.setting-desc {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* =========================
   DARK MODE TOGGLE (FINAL PRO)
========================= */

.dark-toggle {
    display: flex;
    align-items: center;
}

/* Hide checkbox */
.dark-toggle input {
    display: none;
}

/* Toggle container */
.toggle-ui {
    position: relative;
    width: 66px;
    height: 32px;

    border-radius: 999px;
    background: #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7px;
    cursor: pointer;

    transition: background 0.3s ease;
}

body.dark .toggle-ui {
    box-shadow: 0 0 12px rgba(59,130,246,0.4);
}

/* Dark mode background */
.dark-toggle input:checked + .toggle-ui {
    background: #0f172a;
}

/* Icons */
.toggle-ui .icon {
    font-size: 13px;
    z-index: 2;
    pointer-events: none;
    transition: 0.3s ease;
}

/* Sun */
.toggle-ui .sun {
    color: #f59e0b;
}

/* Moon */
.toggle-ui .moon {
    color: #94a3b8;
}

/* Ball */
.toggle-ball {
    position: absolute;
    top: 50%;
    left: 4px;

    width: 24px;
    height: 24px;

    transform: translateY(-50%);
    border-radius: 50%;

    background: #ffffff;

    box-shadow: 0 4px 10px rgba(0,0,0,0.2);

    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease;
}

/* Move ball (PERFECTLY CENTERED) */
.dark-toggle input:checked + .toggle-ui .toggle-ball {
    transform: translate(34px, -50%);
    background: #1e293b;
}

/* Active icon emphasis */
.dark-toggle input:checked + .toggle-ui .moon {
    color: #3b82f6;
}

.dark-toggle input:not(:checked) + .toggle-ui .sun {
    color: #f59e0b;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* === PASSWORD FIELD  === */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-input {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 100%;
    height: 50px;

    padding: 0 48px 0 16px; /* space for icon */

    border-radius: 12px;

    box-sizing: border-box;
}

/* PERFECT CENTERING */
.eye-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 16px;
    color: rgba(255,255,255,0.75);
    cursor: pointer;

    z-index: 2;
    
}

.eye-icon:hover {
    color: #ffffff;

}

/* ===== FORGOT PASSWORD (IMPROVED UI) ===== */

.forgot-password {
    text-align: right;

    margin-top: 1px;      /* closer to password */
    margin-bottom: 5px;  /* tighter spacing */

    line-height: 1;       /* removes extra space */
}

.forgot-password a {
    font-size: 10px;      /* slightly smaller like Facebook */
    color: #fbbf24;
    text-decoration: none;

    font-weight: 500;
    opacity: 0.9;

    transition: all 0.2s ease;
}

.forgot-password a:hover {
    text-decoration: underline;
    opacity: 1;
}
/* =============================== */
/* FORM INPUT CONSISTENCY FIX     */
/* =============================== */

.form-group {
    width: 100%;
}

.form-group input,
.password-wrapper {
    width: 100%;
}

.password-wrapper {
    position: relative;
    width: 100%;

}

/* Force email input to same height */
.form-group input[type="email"] {
    height: 44px;
    box-sizing: border-box;
}
.login-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 12px;
}
/* === DASHBOARD UPGRADE === */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.subtitle {
    font-size: 14px;
    color: #6b7280;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

/* ===== FIXED DASHBOARD GRID (ALIGNED) ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* FORCE 3 PER ROW */
    gap: 20px;
    margin-bottom: 30px;
}

/* Responsive fallback (SAFE) */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   INDUSTRIAL STAT CARDS (FINAL)
=============================== */

/* ===============================
   INDUSTRIAL MONO STAT CARDS
=============================== */

.stat-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;

    display: flex;
    align-items: center;
    gap: 18px;

    border: 1px solid #e5e7eb;

    /* Clean industrial shadow */
    box-shadow:
        0 6px 18px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition: all 0.28s ease;
    overflow: hidden;
}

/* SINGLE ACCENT STRIP */
.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;

    background: #F59E0B; /* ONLY COLOR */

    border-radius: 4px;
}

/* HOVER (SUBTLE, PROFESSIONAL) */
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 30px rgba(0,0,0,0.08),
        0 4px 10px rgba(0,0,0,0.05);
}

/* ICON (MONO STYLE) */
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    /* Neutral base */
    background: #f3f4f6;
    color: #1f2937;

    transition: all 0.3s ease;
}

/* ICON ACCENT ON HOVER */
.stat-card:hover .stat-icon {
    background: #F59E0B;
    color: #ffffff;
    transform: scale(1.05);
}

/* TEXT */
.stat-info {
    display: flex;
    flex-direction: column;
}

/* LABEL */
.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* VALUE (MAIN FOCUS) */
.stat-info h2 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-top: 4px;
}

/* OPTIONAL subtle right highlight */
.stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 100px;
    height: 100px;

    background: radial-gradient(
        circle,
        rgba(245,158,11,0.08),
        transparent 70%
    );
}


.pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}



.pipeline-step {
    background: #f9fafb;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.pipeline-step.completed {
    background: #ecfdf5;
}


.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Card */
/* ===== PREMIUM HOVER (ULTRA SMOOTH) ===== */

.stat-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;

    /* Smooth animation */
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* GPU acceleration */
    will-change: transform;

    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.015);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.08),
        0 4px 12px rgba(0,0,0,0.04);
}
.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon {
    transition: transform 0.3s ease;
}

/* Orange accent line */
.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: #f59e0b;
    border-radius: 4px;
}


/* Icon badge */
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Icon colors */
.bg-blue   { background: #e0f2fe; color: #0284c7; }
.bg-yellow { background: #fef3c7; color: #d97706; }
.bg-green  { background: #dcfce7; color: #16a34a; }
.bg-orange { background: #ffedd5; color: #ea580c; }

/* Text */
.stat-label {
    font-size: 13px;
    color: var(--muted);
}

.stat-info h2 {
    margin: 2px 0 0;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}
.pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.pipeline-step {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.pipe-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Extra colors */
.bg-purple { background: #ede9fe; color: #7c3aed; }
.bg-cyan   { background: #cffafe; color: #0891b2; }
.logo-img {
    width: 40px;        /* adjust as needed */
    height: 40px;
    object-fit: contain;
}
.status-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* STATUS COLORS */
.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-order-received {
    background: #e0f2fe;
    color: #0369a1;
}

.status-measurement {
    background: #ede9fe;
    color: #5b21b6;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

/* CUSTOMER DASHBOARD */

.customer-dashboard .subtitle {
    color: #64748b;
    margin-top: 6px;
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.customer-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-card.highlight {
    border-left: 4px solid #f59e0b;
}

.customer-card.cta {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.customer-card .card-icon {
    font-size: 28px;
    color: #f59e0b;
    margin-right: 16px;
}

.order-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.order-steps div {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.order-steps .done {
    background: #ecfdf5;
    color: #047857;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-size: 14px;
}

.empty-state i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #cbd5e1;
}
.progress-bar {
    background: #e5e7eb;
    border-radius: 6px;
    height: 6px;
    margin-top: 6px;
    width: 120px;
}

.progress-fill {
    background: #f59e0b;
    height: 100%;
    border-radius: 6px;
    transition: width .4s ease;
}
:root {
    --primary: #0B1C2D;
    --accent: #F59E0B;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --border: #E5E7EB;
    --text: #111827;
    --muted: #6B7280;
}

* {
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

/* ===== NAVBAR FINAL CLEAN ===== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    padding: 0 60px;
    background: #fff;
    z-index: 1000;
}

/* CENTER NAV */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

/* LINKS */
.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 500;
    color: #646a77;
    text-decoration: none;

    transition: 0.2s;
}

/* HOVER */
.nav-links a:hover {
    color: #f59e0b;
}
/* LEFT */
.nav-left {
    justify-self: start;
}

/* CENTER */
.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 70px; 
}

/* LINKS */
.nav-center a {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #4e4949;

    transition: 0.2s;
}
.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 24px;
}



.logo {
    height: 85px;
}
.logo-link {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.brand-name {
    font-weight: 600;
    font-size: 18px;
    color: #111827;
}

/* ===== CLEAN GOOGLE-LIKE SEARCH (FIXED) ===== */

.search-box {
    position: relative;
    display: flex;
    align-items: center;

    width: 230px;
    height: 36px; /* FIXED HEIGHT */

    background: #ffffff;
    border-radius: 999px;
     margin-right: 4px;

    padding: 0 14px 0 36px; /* balanced */

    box-shadow: 0 1px 4px rgba(0,0,0,0.15); /* lighter */
}

/* ICON */
.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%); /* PERFECT CENTER */

    font-size: 13px;
    color: #9aa0a6;
}

/* INPUT */
.search-box input {
    border: none;
    outline: none;
    background: transparent;

    width: 100%;
    font-size: 13px;
    color: #202124;

    line-height: 1;
}

/* PLACEHOLDER */
.search-box input::placeholder {
    color: #9aa0a6;
}

/* HOVER */
.search-box:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* FOCUS */
.search-box:focus-within {
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
/* USER ICON */
.user-icon {
    font-size: 18px;
    color: #111827;
    cursor: pointer;

    display: flex;
    align-items: center;
}

.user-icon:hover {
    color: #f59e0b;
}

/* ===== HERO FINAL CLEAN ===== */
.hero-clean {
    position: relative;
    z-index: 1;

    min-height: calc(100vh - 72px); /* ✅ FIXED */

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 40px; /* keep horizontal only */
    overflow: hidden;

    background: url('../../metal-bg.png') center/cover no-repeat;
}

/* BACKGROUND IMAGE */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;


    background: linear-gradient(
        to right,
        rgba(2, 6, 23, 0.85),
        rgba(2, 6, 23, 0.6)
    );

    z-index: 1;
}
.hero-actions {
    position: relative;
    z-index: 3;
}
/* GRID LAYOUT */
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    max-width: 1250px;
    width: 100%;
    gap: 80px;
    z-index: 2;
}

/* LEFT TEXT */
.hero-text {
    max-width: 520px;
    z-index: 5;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.1;
    color: #ffffff;
    font-weight: 800;
}

.hero-text span {
    color: #f59e0b;
}

.hero-text p {
    margin-top: 18px;
    font-size: 16px;
    color: #cbd5f5;
    line-height: 1.6;
}

/* BUTTONS */
.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

/* PRIMARY BUTTON */
.btn-main {
    background: #f59e0b;
    color: #000;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 44px;
}

/* SECONDARY BUTTON */
.btn-outline {
    border: 1px solid #94a3b8;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 44px;
}

/* RIGHT SIDE */
.hero-visual {
    display: flex;
    justify-content: center;
    
}

/* CARD */
.hero-card {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    border-radius: 20px;

    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);

    box-shadow: 0 30px 80px rgba(0,0,0,0.6);

    display: flex;
    flex-direction: column;

    overflow: hidden; /* ✅ CRITICAL FIX */
}

/* HEADER */
.card-header {
    display: flex;
    justify-content: space-between;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 15px;
}
/* CAROUSEL */
.carousel {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* VIEWPORT (CRITICAL) */
.carousel-viewport {
    width: 100%;
    max-width: 100%; /* prevent expansion */
    overflow: hidden;

    display: flex;
    align-items: center;
}

/* TRACK */
.carousel-track {
    display: flex;
    width: 100%; /* IMPORTANT */
    transition: transform 0.5s ease;
}
.carousel-track,
.slide {
    position: relative;
    z-index: 2;
}

/* SLIDES (IMPORTANT FIX HERE) */
.carousel-track img {
    width: 100%;
    height: 280px;
    object-fit: contain;

    flex: 0 0 100%; /* ensures 1 slide per view */
}

.carousel-track {
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ARROWS */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;

    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    border: none;

    color: #fff;
    cursor: pointer;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* OPTIONAL FLOAT EFFECT (NOW APPLIED) */
.hero-card {
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================
   ABOUT SECTION
========================= */

.about-section {
    min-height: calc(100vh - 72px); /* FULL SCREEN minus navbar */

    display: flex;
    align-items: center;   /* VERTICAL CENTER */
    justify-content: center; /* HORIZONTAL CENTER */

    padding: 40px 20px !important;

    position: relative;
    overflow: visible;
}

/* BLURRED BACKGROUND (VISIBLE!) */
.about-section::before {
    content: "";
    position: absolute;
    inset: 0;

     background: url('../../metal-bg.png') center/cover no-repeat;

    filter: blur(1px) brightness(1);
    transform: none;
    z-index: -1; 
}
.about-card {
    max-width: 1100px;
    width: 100%;
    background: rgba(107, 114, 128, 0.25); /* semi-transparent */
    backdrop-filter: blur(3px);

    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;

    padding: 50px;
    border-radius: 20px;

    box-shadow: 0 25px 60px rgba(0,0,0,0.5);

    position: relative;
    z-index: 2;
}
.about-text {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 30px;

    border: 1px solid rgba(255,255,255,0.1);

    position: relative;
    z-index: 3;
}
.about-text h2 {
    color: #ffffff;
}

.about-text p {
    font-size: 15px;
    color: #f8fafc;
    line-height: 1.7;
}
.about-highlights {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.about-highlights span {
    color: #e5e7eb;
    font-size: 14px;
    opacity: 0.95;
}
.about-tag {
    color: #f59e0b;
    background: rgba(245,158,11,0.15);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}
.about-image {
    position: relative;
    z-index: 3;

    display: flex;
    justify-content: center;
    align-items: center;
}


.about-image img {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
}
@media (max-width: 768px) {
    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* ============================= */
/* PRODUCT SECTION BACKGROUND */
/* ============================= */

.products-section {
    min-height: calc(100vh - 72px);
     padding: 40px 20px !important;

    display: flex;
    align-items: center;      /*  vertical center */
    justify-content: center;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.9)), /* DARK OVERLAY */
        url('../../metal-bg.png') center/cover no-repeat,       /* YOUR IMAGE */
        radial-gradient(circle at 15% 20%, rgba(0, 123, 255, 0.25), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 165, 0, 0.2), transparent 40%),
        linear-gradient(135deg, #020617, #06142b, #020617);
}
.products-wrapper {
    width: 100%;
    max-width: 1200px;
}

/* GLOW EFFECT */
.products-section::before,
.products-section::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(120px);
    z-index: 0;
}

.products-section::before {
    top: -150px;
    left: -150px;
    background: rgba(0, 123, 255, 0.25);
}

.products-section::after {
    bottom: -150px;
    right: -150px;
    background: rgba(255, 165, 0, 0.2);
}

/* CONTENT ABOVE BACKGROUND */
.products-section > * {
    position: relative;
    z-index: 1;
}

/* ============================= */
/* CLEAN CAROUSEL (FINAL FIX) */
/* ============================= */

.p2-carousel {
    display: flex;
    gap: 24px;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: auto;
    scroll-snap-type: none;
      white-space: nowrap;
    padding: 10px;

    scrollbar-width: none;
}

.p2-carousel::-webkit-scrollbar {
    display: none;
}

/* ============================= */
/* PRODUCT CARDS */
/* ============================= */

.product-card {
    min-width: 260px;
    max-width: 280px;
    flex: 0 0 240px;


    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 18px;
    overflow: hidden;

    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
}

/* HOVER EFFECT */
.product-card:hover {
    transform: translateY(-10px) scale(1.02);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(0, 123, 255, 0.25);
}

/* ============================= */
/* IMAGE */
/* ============================= */

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

/* ============================= */
/* CONTENT */
/* ============================= */

.product-card .product-info {
    padding: 18px;
    text-align: center;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
}

/* ============================= */
/* GLOW BORDER */
/* ============================= */

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;

    background: linear-gradient(
        120deg,
        rgba(0, 123, 255, 0.3),
        transparent,
        rgba(255, 165, 0, 0.3)
    );

}

/* FOOTER */
.footer-col h4 {
    color: #ffffff;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: #F59E0B;
}

.footer-col i {
    color: #F59E0B;
}

/* Grid layout */
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

@media (max-width: 900px){
    .footer-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px){
    .footer-grid{
        grid-template-columns: 1fr;
    }
}

/* CONTACT SECTION BACKGROUND */

.contact-bg {
    position: relative;
    background:url('../../metal-bg.png') center/cover no-repeat;
    filter: brightness(0.8);
    position: relative;
    overflow: hidden;

}

/* BLURRED BACKGROUND IMAGE */
.contact-bg::before {
    content: "";
    position: absolute;
    inset: 0;

    background:url('../../metal-bg.png') center/cover no-repeat;

    filter: blur(6px) brightness(0.8);
    transform: scale(1.1); /* prevents edge cut after blur */

    z-index: 0;
}
/* OVERLAY */
.contact-overlay {
    position: absolute;
    inset: 0;
    

    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}
/* CONTENT ABOVE OVERLAY */
.contact-content {
    position: relative;
    z-index: 2;
}

/* GLASS CARD (REUSABLE) */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);

    transition: 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: 0.4s;
}

.glass-card:hover::before {
    opacity: 1;
}

/* Columns */
.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #ffffff;
}

.footer-col p,
.footer-col a {
    display: block;
    margin-bottom: 0.6rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-col i {
    margin-right: 0.5rem;
    color: #647bff;
}

/* Map styling (correct fix) */
.footer-col iframe{
    width: 100%;
    max-width: 180px;
    height: 180px;
    margin-top: 0.8rem;
    border-radius: 8px;
    border: 0;
}

.footer-email a{
    display:flex;
    align-items:center;
    gap:8px;
    color:#ffffff;
    text-decoration:none;
}

.footer-email a:hover{
    color:#647bff;
}

.footer-email i{
    font-size:16px;
}

/* Social section */
.footer-social {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}

.footer-social p {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #113bf8;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: #647bff;
}

/* Bottom */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #6B7280;
}
/* FORCE READABLE TEXT ON BACKGROUND */

.contact-bg h4 {
    color: #ffffff;
    font-weight: 600;
}

/* MAIN TEXT */
.contact-bg p {
    color: rgba(255, 255, 255, 0.95);
}

/* LINKS */
.contact-bg a {
    color: rgba(255, 255, 255, 0.9);
}

.contact-bg a:hover {
    color: #949494;
}
.contact-bg h4,
.contact-bg p,
.contact-bg a {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ICONS */
.contact-bg i {
    color: #ffffff;
}


.contact-bg p,
.contact-bg a {
    color: rgba(255, 255, 255, 0.85);
}

.contact-bg a:hover {
    color: #647bff;
}

.contact-bg i {
    color: #ffffff;
}
@media (max-width: 768px) {

    section {
        padding: 60px 6%;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}
@media (max-width: 900px) {

    .about-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .about-text {
        max-width: 100%;
    }

    .about-image img {
        width: 100%;
        max-width: 420px;
    }
}

/* LOGO */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 75px; 
    width: auto;
}

.brand {
    font-weight: 700;
}

/* USER */
.user-icon {
    margin-left: 10px;
    cursor: pointer;
}
/* IMAGE CONTAINER */
.product-image {
    height: 180px;                    
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGE ITSELF */
.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;              
}

/* PRODUCT INFO */
.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* PRODUCT NAME (LIMIT LINES) */
.product-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;

    display: -webkit-box;          
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PRICE ALWAYS AT BOTTOM */
.product-info .price {
    margin-top: auto;                
    font-weight: 700;
    color: var(--accent);
}
@media (max-width: 768px) {
    .product-card {
        height: 300px;
    }

    .product-image {
        height: 160px;
    }
}

/* ===== FLOATING CAROUSEL ===== */

.floating-carousel {
    position: relative;
    width: 600px;
    height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-carousel::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;

    background: radial-gradient(
        circle,
        rgba(255,255,255,0.15),
        transparent 70%
    );

    filter: blur(60px);
    z-index: 0;
}

/* ✅ CRITICAL (CLIPPING FIX) */
.carousel-viewport {
    width: 100%;
    overflow: hidden;
}

/* TRACK */
.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

/* SLIDES */
.slide {
    flex: 0 0 100%;
    height: 360px;
    object-fit: contain;

    opacity: 0.85; /* FIX visibility */
    transform: scale(0.95);

    filter: none; /* REMOVE BLUR */
    transition: all 0.5s ease;
}

/* CENTER */
.slide.active {
    opacity: 1;
    transform: scale(1.25);

    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.9));
}

/* SIDE */
.slide.prev,
.slide.next {
    opacity: 0.9; /* almost fully visible */
    transform: scale(1.05);
}
/* ARROWS */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;

    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    border: none;

    color: #fff;
    cursor: pointer;
}

.arrow.left { left: -65px; }
.arrow.right { right: -20px; }
/* ================================
   ABOUT CARD REVEAL + HOVER
================================ */

/* About card hover effect */
.about-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
/* ===== Login Modal ===== */
.login-modal {
    position: fixed;
    inset: 0;

    /* DARK + BLUR BACKGROUND */
    background: rgba(10, 15, 25, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.login-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-content {

    width: 380px;
    max-width: 90%;

    padding: 32px;

    border-radius: 20px;

    /* GLASS EFFECT */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.2);

    position: relative;

    animation: modalFade 0.35s ease;

}

/* ===============================
   FINAL FIX — CLEAN INPUT SYSTEM
=============================== */

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #1e293b inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login-modal-content input,
.password-input {
    width: 100%;
    height: 50px;

    padding: 0 48px 0 16px;

    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);

    background: rgba(0, 0, 0, 0.25);

    color: #ffffff;
    font-size: 14px;
}

/* PLACEHOLDER */
.login-modal-content input::placeholder {
    color: rgba(255,255,255,0.65);
}

/* PLACEHOLDER */
.login-modal-content input::placeholder {
    color: rgba(255,255,255,0.6);
}

.login-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* automatic spacing */
}

/* Close button */
.login-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* Titles */
.login-title {
    color: #f59e0b;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 18px;
}


/* Login button (scoped) */
.login-modal-content .login-btn {
    width: 100%;
    padding: 12px;
    background: #f59e0b;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.login-modal-content .login-btn:hover {
    background: #d97706;
}

.login-note {
    font-size: 12px;
    color: #777;
    margin-top: 12px;
    text-align: center;
}

/* User icon (navbar) */
.nav-user-icon {
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    margin-left: 14px;
}

.nav-user-icon:hover {
    color: #f59e0b;
}

/* Animation */
@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ===== LOGIN MODAL (CLEAN & FINAL) ===== */

/* ===== LOGO HEADER ===== */
.login-header {
    text-align: center;
    margin-bottom: 28px;
    padding-top: 10px;
    font-size: 5px;
    font-weight: 600;
    color: #111827;
}

.login-header img {
    width: 110px;   /* increase logo ONLY */
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
  
}
.login-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 20px;

    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.2),
        transparent,
        rgba(255,255,255,0.1)
    );

    pointer-events: none;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.login-modal {
    position: fixed;
    inset: 0;

    /* Dim + blur background */
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(4px);

    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: background 0.2s ease, backdrop-filter 0.2s ease;
}
.login-modal.active {
    display: flex;
}

/* Freeze page when modal is open */
body.modal-open {
    overflow: hidden;
}
/* Login footer text */
.login-footer {
    margin-top: 16px;
    font-size: 10px;
    color: #6b7280;
    text-align: center;
}

.register-link {
    color: #f59e0b;
    font-weight: 600;
    cursor: pointer;
}

.register-link:hover {
    text-decoration: underline;
}
.login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}

.login-success {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}

#faq { 
    position: relative;

    background:
        linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.8)),
        url('../../metal-bg.png') center/cover no-repeat;

    padding: 80px 20px;
    min-height: calc(100vh - 72px);
}
mark {
    background: #585858;
    color: #000;
    padding: 2px 4px;
    border-radius: 4px;
}
.faq-wrapper {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

/* LEFT SIDE */
.faq-left {
    flex: 1;
}

#faq .faq-title,
#faq .faq-question {
    color: #fff;
}

#faq .faq-answer p,
#faq .faq-subtitle {
    color: rgba(255,255,255,0.7);
}

/* SEARCH */
.faq-search {
    position: relative;
    margin-bottom: 30px;
}

.faq-search input {
    width: 100%;
    padding: 14px 18px 14px 45px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    font-size: 14px;
    outline: none;
}

.faq-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* FAQ ITEMS */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111827;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    padding-bottom: 15px;
    font-size: 14px;
    color: #6b7280;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* RIGHT SIDE IMAGE */
.faq-right {
    flex: 1;
    text-align: center;
}

.faq-right img {
    max-width: 100%;
    height: auto;
}

/* NO RESULTS */
.faq-no-results {
    text-align: left;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .faq-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .faq-left {
        width: 100%;
    }

    .faq-right {
        margin-top: 30px;
    }
}
/* ===== SECTION SWITCHING ===== */
.page-section {
    padding: 80px 6%;
    position: relative;
    z-index: 1;

}
.product-no-results {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: #6b7280;
}
.legal-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.legal-container h1 {
    margin-bottom: 20px;
}

.legal-container h2 {
    margin-top: 30px;
    color: #1e3a8a;
}

.legal-back {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    font-weight: 600;
    color: #1e3a8a;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #051542;
    padding-left: 4px;
}

/* =========================
REPORT TABLE STYLING
========================= */

.report-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    margin-top:10px;
    background:#ffffff;
}

/* header styling */

.report-table th{
    background:#1E3A8A;
    color:#ffffff;
    padding:12px;
    text-align:left;
    font-weight:600;
    font-size:14px;
}

/* rounded header corners */

.report-table th:first-child{
    border-top-left-radius:10px;
}

.report-table th:last-child{
    border-top-right-radius:10px;
}

/* table cells */

.report-table td{
    padding:12px;
    border-bottom:1px solid #E5E7EB;
    font-size:14px;
}

/* hover effect */

.report-table tbody tr{
    transition:background 0.2s ease;
}

.report-table tbody tr:hover{
    background:#F3F4F6;
}
/* =========================
SECTION TITLES
========================= */

.report-title{
    display:flex;
    align-items:center;
    font-size:18px;
    font-weight:600;
    margin-bottom:15px;
}

/* black icons */

.report-icon{
    color:#000000;
    margin-right:8px;
    font-size:16px;
}

/* =========================
REPORT FILTER
========================= */

.report-filter{
    display:flex;
    align-items:center;
    gap:8px;
}

.report-filter select{
    padding:6px 12px;
    border-radius:10px;
    border:1px solid #d1d5db;
    background:#ffffff;
    cursor:pointer;
    font-size:14px;
    transition:border 0.2s ease;
}

.report-filter select:hover{
    border-color:#9ca3af;
}

.report-filter select:focus{
    outline:none;
    border-color:#1E3A8A;
}

/* =========================
CARD SPACING
========================= */

.report-section{
    margin-bottom:30px;
}

/* optional subtle card hover */

.report-card{
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(0,0,0,0.06);
}

/* DASHBOARD GRID */

.dashboard-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    margin-top:25px;
}


/* ===== CHART CONTAINER (FIXED & RESPONSIVE) ===== */

.chart-card {
    padding: 20px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 300px; /* FIXED HEIGHT = NO DISTORTION */
}

/* Pie chart gets more space */
.chart-container.pie {
    height: 360px;
}

/* Make canvas behave properly */
.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}
/* FORCE SIDE-BY-SIDE LAYOUT */
.dashboard-grid.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* RESPONSIVE (mobile safe) */
@media (max-width: 900px) {
    .dashboard-grid.two-columns {
        grid-template-columns: 1fr;
    }
}
.card{
    transition:all .25s ease;
}

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

/* CHART GRID */

.chart-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    margin-top:25px;
}


/* Chart size */

.chart-grid canvas{
    width:100% !important;
    height:320px !important;
}
.card{
    transition:all .25s ease;
}

.card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}
.sidebar img{
    max-width:40px;
    height:auto;
}
.section-title{
text-align:center;
font-size:26px;
margin-bottom:30px;
color:#1e293b;
}

.product-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
}
.product-card img{
width:100%;
height:180px;
object-fit:contain;
margin:10px 0;
}

.product-card h3{
font-size:16px;
color:#0f172a;
margin-bottom:10px;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.desc{
font-size:13px;
color:#475569;
margin-bottom:10px;
}

.size{
font-weight:600;
margin-top:5px;
}

.price{
font-size:16px;
font-weight:700;
color:#111827;
margin:8px 0;
}

.product-card form{
display:flex;
justify-content:center;
gap:8px;
}

.product-card input{
width:60px;
padding:6px;
border:1px solid #d1d5db;
border-radius:4px;
}


/* FORCE ALL BUTTON LINKS TO LOOK LIKE BUTTONS */
.btn-action {
    color: #000 !important;
    text-decoration: none !important;
}

.btn-action:visited {
    color: #000 !important;
}

.btn-action:active {
    color: #000 !important;
}
img {
    border-radius: 6px;
}
.custom-form {
    max-width: 700px;
    margin-top: 20px;
}

/* ROW */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

/* GROUP */
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* LABEL */
.form-group label {
    font-size: 13px;
    margin-bottom: 5px;
    color: #374151;
}

/* INPUT */
.form-group input,
.form-group textarea {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* TEXTAREA */
textarea {
    resize: none;
}

/* BUTTON */
.btn-submit {
    margin-top: 15px;
    background: #f59e0b;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-submit:hover {
    background: #d97706;
}
.orders-container {
    max-width: 900px;
    margin: auto;
}

.order-card.modern {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: 0.2s;
}

.order-card.modern:hover {
    transform: translateY(-4px);
}

/* TOP */
.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.order-meta {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* IMAGE */
.order-image img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin: 12px 0;
}

/* ACTIONS */
.order-actions {
    
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ORDER ID (LOW PRIORITY) */
.order-id {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
}

.btn-view, .btn-track {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.btn-view {
    background: #3498db;
    color: #fff;
}

.btn-track {
    background: #2ecc71;
    color: #fff;
}

/* STATUS BADGES */
.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.status-pending { background: #f39c12; }
.status-order-received { background: #3498db; }
.status-in-progress { background: #9b59b6; }
.status-completed { background: #2ecc71; }

/* IMAGE */
.order-image img {
    width: 100%;
    max-width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 10px;
}


 /* GLOBAL */
body {
    background: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #333;
}

/* CONTAINER */
.order-container {
    max-width: 1100px;
    margin: auto;
}

/* HEADER */
.order-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-date {
    color: #888;
    font-size: 14px;
}

/* STATUS */
/* STATUS */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;

    /* FIX: readable text */
    color: #92400e;

    /* soft neutral background */
    background: rgba(245, 158, 11, 0.12);

    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.status-order-received {
    background: rgba(245, 158, 11, 0.10);
    color: #92400e;
}

.status-in-progress {
    background: rgba(245, 158, 11, 0.20);
    color: #78350f;
}

.status-completed {
    background: rgba(245, 158, 11, 0.25);
    color: #5b2d0a;
}

/* CONTENT GRID */
.order-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* CARD */
.card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 24px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.05),
        0 2px 6px rgba(0,0,0,0.04);

    border: 1px solid rgba(255,255,255,0.3);
}

.card:hover {
    transform: translateY(-3px);
}

/* TABLE */
.order-items table {
    width: 100%;
    border-collapse: collapse;
}

.order-items th {
    background: #f8f9fb;
    padding: 12px;
}.orders-container {
    max-width: 900px;
    margin: auto;
}

.order-card.modern {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 15px;
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info h4 {
    margin: 0;
    font-size: 16px;
}

.order-info h4 i {
    margin-right: 6px;
}

.order-meta {
    font-size: 13px;
    color: #888;
}

.order-image img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px 0;
}

.order-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.order-id {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
}

/* BUTTONS */
.btn-view {
    background: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-track {
    background: #2ecc71;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-cancel {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
}

/* STATUS */
.status-pending { background: #f39c12; color: white; padding: 5px 10px; border-radius: 20px; }
.status-order-received { background: #3498db; color: white; padding: 5px 10px; border-radius: 20px; }
.status-cancelled { background: #7f8c8d; color: white; padding: 5px 10px; border-radius: 20px; }

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 320px;
    margin: 15% auto;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-secondary {
    background: #f9fafb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    padding: 10px 16px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;
    color: #374151;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* HOVER EFFECT */
.btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* ACTIVE CLICK */
.btn-secondary:active {
    transform: scale(0.98);
}

.alert-success {
    background: #2ecc71;
    color: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.order-items td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.order-items tr:hover {
    background: #fafafa;
}

/* SUMMARY */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* ===== MODERN PRIMARY BUTTON ===== */
.btn-primary-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;
    border-radius: 10px;

    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;

    font-weight: 500;
    font-size: 14px;
    text-decoration: none;

    transition: all 0.25s ease;
}

/* Hover */
.btn-primary-soft:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Active click */
.btn-primary-soft:active {
    transform: scale(0.98);
}

/* BACK BUTTON */
.btn-back {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
}

.btn-back i {
    margin-right: 6px;
}

/* CONTAINER */
.track-container {
    max-width: 900px;
    margin: auto;
}

/* BACK BUTTON */
.btn-back {
    display: inline-block;
    margin-bottom: 15px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.btn-back i {
    margin-right: 6px;
}

/* CONTAINER */
.track-container {
    max-width: 900px;
    margin: auto;
}

/* CARD */
.track-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* HEADER */
.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* STATUS */
.status {
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
}

.status-pending { background: #f39c12; }
.status-order-received { background: #3498db; }
.status-in-progress { background: #9b59b6; }
.status-completed { background: #2ecc71; }
.status-cancelled { background: #7f8c8d; }

/* TRACKER */
.tracker {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* LINE BASE */
.tracker-line {
    position: absolute;
    top: 22px;
    left: 5%;
    width: 90%;
    height: 4px;
    background: #ddd;
}

/* PROGRESS LINE */
.tracker-progress {
    position: absolute;
    top: 22px;
    left: 5%;
    height: 4px;
    background: #2ecc71;
    transition: width 0.3s ease;
}

/* STEP */
.tracker-step {
    text-align: center;
    width: 33%;
    z-index: 2;
}

/* ICON */
.tracker-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* DONE */
.tracker-icon.done {
    background: #2ecc71;
    color: white;
}

/* ACTIVE */
.tracker-icon.active {
    background: white;
    border: 3px solid #3498db;
    color: #3498db;
}

/* LABEL */
.tracker-label {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

/* ACTIVE LABEL */
.tracker-icon.active + .tracker-label {
    font-weight: 600;
    color: #3498db;
}

/* DONE LABEL */
.tracker-icon.done + .tracker-label {
    color: #2ecc71;
}

/* CANCELLED UI */
.cancelled-box {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
}

.cancelled-box i {
    font-size: 40px;
    margin-bottom: 10px;
}
.tracker-step {
    width: 33%;
    text-align: center;
    z-index: 2;
}

.tracker-content {
    margin-top: 10px;
}

.tracker-content h4 {
    margin: 5px 0;
    font-size: 14px;
}

.tracker-content p {
    font-size: 12px;
    color: #777;
    max-width: 180px;
    margin: auto;
}

.current-status {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: #3498db;
    font-weight: 600;
}
/* PROGRESS BAR */
.progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 10px;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    background: #2ecc71;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: #555;
}

/* TIMELINE */
.timeline {
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon.done {
    background: #2ecc71;
    color: white;
}

.timeline-icon.pending {
    background: #f39c12;
    color: white;
}

.timeline-content h4 {
    margin: 0;
}

.timeline-content p {
    margin: 2px 0;
    font-size: 13px;
}

.timeline-content small {
    color: #888;
}
.btn-present {
    background: #16a34a;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    margin-right: 8px;
    cursor: pointer;
}

.btn-absent {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
}

.btn-present.active {
    box-shadow: 0 0 0 2px #166534;
}

.btn-absent.active {
    box-shadow: 0 0 0 2px #7f1d1d;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    position: relative;
}

/* HOVER */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ACTIVE STATE (MATCH DASHBOARD STYLE) */
.nav-item.active {
    background: linear-gradient(to right, #1e293b, #0f172a);
    color: #fff;
    font-weight: 600;
}

/* GREEN LEFT INDICATOR */
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: #22c55e !important; /* FORCE GREEN */
    border-radius: 4px;
}

/* ICON COLOR */
.nav-item.active i {
    color: #22c55e;
     transition: all 0.2s ease;
}
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}

.badge-warning { background: #f59e0b; }
.badge-primary { background: #3b82f6; }
.badge-info { background: #06b6d4; }
.badge-success { background: #10b981; }

.progress {
    width: 100px;
    height: 8px;
    background: #eee;
    border-radius: 10px;
}

.progress-bar {
    height: 100%;
    background: #3b82f6;
    border-radius: 10px;
}

.done-text {
    color: #10b981;
    font-weight: bold;
}
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
}

/* ✅ ACTIVE STYLE (MATCH STAFF) */
.nav-item.active {
    background: rgba(255, 255, 255, 0.05);
     border-left: 4px solid #38bdf8;
    color: #fff;
}

/* ✅ LEFT GREEN BAR */
.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: #22c55e; /* green */
    border-radius: 4px;
}

/* =========================
PRODUCT SECTION (FINAL FIX)
========================= */
.p2-carousel-wrapper {
    position: relative;
    z-index: 2; /* FIX BUTTON CLICK */
    max-width: 1100px;
    margin: auto;
    overflow: visible;

}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
}

/* IMAGE */
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* TEXT */
.product-card h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 6px;
}

.product-card p {
    color: #94a3b8;
    font-size: 13px;
}

/* MOBILE */
@media (max-width: 768px) {
    .products-header h2 {
        font-size: 26px;
    }
}

.products-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 20px;
}

.products-header .line {
    flex: 1;
    height: 2px;
    background: #000;
    max-width: 200px;
}

.product-card:hover {
    transform: translateY(-8px);
}

/* =========================
P2 PRODUCTS FINAL STYLE
========================= */

#products {
    position: relative;

    background:
        linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.9)), /* brightness control */
        url('../../metal-bg.png') center/cover no-repeat;

    padding: 100px 20px;
    scroll-margin-top: 90px;
    min-height: calc(100vh - 72px);

    display: flex;
    flex-direction: column;
    justify-content: center;
}
.p2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}
/* FIX SCROLL OFFSET */
#products {
    scroll-margin-top: 80px;
}

/* HEADER */
.p2-header {
    text-align: center;
    margin-bottom: 40px;
}

.p2-header h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.p2-header p {
    color: #94a3b8;
}

/* FILTER */
.p2-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.p2-btn {
    padding: 8px 18px;
    border-radius: 50px;
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #e2e8f0;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 5;
}

.p2-btn.active {
    background: #f59e0b;
    color: #000;
}

/* CAROUSEL */
.p2-carousel-wrapper {
    position: relative;
}

.p2-carousel::-webkit-scrollbar {
    display: none;
}

/* CARD */
.p2-card {
    min-width: 280px;
    flex: 0 0 auto;

    position: relative;
    overflow: hidden;

    border-radius: 16px;

    /* GLASS EFFECT */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    padding: 15px;
    text-align: center;

    scroll-snap-align: start;

    transition: all 0.3s ease;

    /* DEPTH */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.p2-card:hover {
    transform: translateY(-6px) scale(1.02);

    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 123, 255, 0.2);
}

.p2-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;

    border-radius: 10px;
    margin-bottom: 10px;

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.p2-card h3 {
    color: #ffffff;
    margin-bottom: 5px;
}

.p2-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}
.p2-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: linear-gradient(
        120deg,
        rgba(0, 123, 255, 0.15),
        transparent,
        rgba(255, 165, 0, 0.15)
    );

    opacity: 0;
    transition: 0.3s;
}

.p2-card:hover::after {
    opacity: 1;
}.p2-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: linear-gradient(
        120deg,
        rgba(0, 123, 255, 0.15),
        transparent,
        rgba(255, 165, 0, 0.15)
    );

    opacity: 0;
    transition: 0.3s;
}

.p2-card:hover::after {
    opacity: 1;
}

/* NAV BUTTONS */
.p2-nav {
    background: rgba(0, 0, 0, 0.5); /* DARKER for visibility */

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    color: #fff;
    cursor: pointer;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
     z-index: 10;
}
.p2-carousel-wrapper {
    position: relative;
}

.p2-nav.left {
    left: -60px;   /* ← PUSH OUTSIDE */
}

.p2-nav.right {
    right: -60px;  /* ← PUSH OUTSIDE */
}

.p2-nav:hover {
    background: #f59e0b;
    color: #000;
}
section {
    position: relative;
    z-index: 1;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
/* =========================
   NAV ACTIVE INDICATOR
========================= */
.nav-center a {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 14px; /* important for pill shape */
    border-radius: 999px;

    font-size: 14px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    transition: background 0.25s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-center a.active {
    background: #f59e0b;
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
}

/* HOVER (light gray) */
.nav-center a:hover {
    background: #f1f5f9;
}

/* ACTIVE (pill style) */
.nav-center a.active {
   background: #caccd3;
   color: #585858;
   border: 1px solid #e5e7eb;
    font-weight: 600;
    transform: scale(1.03);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
/* ========================= */
/* USERS PAGE UI UPGRADE */
/* ========================= */

.users-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* TITLE */
.users-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* DROPDOWN */
.users-card select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    margin-bottom: 15px;
    outline: none;

    font-size: 14px;
    transition: 0.2s;
}
select:hover {
    border-color: #F59E0B;
}

/* TABLE */
.users-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* spacing between rows */
}
/* HEADER */
.users-card th {
    text-align: left;
    font-size: 12px;
    color: #3e4042;
    padding: 8px 12px;
    text-transform: uppercase;
}
.users-card tbody tr {
    background: #f9fafb;
    border-radius: 10px;
    overflow: hidden;
}

/* ROWS */
.users-card td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

/* HOVER */
.users-card tr:hover {
    background: #f9fafb;
}

/* ROLE GROUP HEADER */
.role-header td {
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    padding: 12px 5px 6px;
    border-left: 4px solid #f59e0b; /* accent color */
}
.role-header td {
    padding: 6px 16px !important;
    background: #f3f4f6 !important; /* 🔥 THIS FIXES THE CUT */
    border-radius: 10px;
}

/* ROLE BADGE BASE */
.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;

    border-radius: 999px;

    background: #e0f2fe;
    color: #0369a1;

    line-height: 1;
    height: auto;

    white-space: nowrap;
}
/* LIGHT MODE (KEEP THIS) */
.role-admin {
    background: #e0f2fe;
    color: #0369a1;
}

.role-staff {
    background: #dcfce7;
    color: #166534;
}

.role-welder {
    background: #fef3c7;
    color: #92400e;
}

.role-customer {
    background: #e0f2fe;
    color: #0369a1;
}
.users-card tbody tr:hover {
    background: #eef2ff;
    transform: translateY(-1px);
    transition: 0.2s ease;
}
.date-col {
    white-space: nowrap;      /* prevents wrapping */
    text-align: left;        /* align neatly to right */
    font-family: "Inter", Arial, sans-serif;  /* cleaner time alignment */
    font-size: 13px;
     letter-spacing: 0.2px;
    color: #475569;
}
th:last-child,
td:last-child {
    width: 260px;
}
th {
    text-align: left !important;
}
table {
    table-layout: fixed;
}
th, td {
    padding: 14px 20px;
}
/* Filter buttons */
.report-filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    text-decoration: none;
    transition: 0.25s;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
}
/* STATUS MESSAGE */
.status-message {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 500;
}

/* TYPES */
.status-info {
    background: #e0f2fe;
    color: #0369a1;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-progress {
    background: #ede9fe;
    color: #6d28d9;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-danger {
    background: #fee2e2;
    color: #b91c1c;
}
.about-section.page-section {
    padding: 140px 20px !important;
}
/* =========================
MODERN STAT CARD UPGRADE
========================= */

.modern-card {
    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 18px;
    border-radius: 16px;

    background: #ffffff;
    border: 1px solid #e5e7eb;

    transition: all 0.3s ease;
    cursor: pointer;

    position: relative;
}

/* TOP ROW */
.stat-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* TEXT */
.stat-main h2 {
    font-size: 26px;
    margin: 0;
}

/* DETAILS (HIDDEN BY DEFAULT) */
.stat-details {
    display: none;
    flex-direction: column;
    gap: 8px;

    font-size: 13px;
    color: #6b7280;
}

/* SHOW ON HOVER */
.modern-card:hover .stat-details {
    display: flex;
}

/* HOVER EFFECT */
.modern-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.08),
        0 4px 12px rgba(0,0,0,0.05);
}

/* ICON STYLE */
.stat-details i {
    color: #f59e0b;
    margin-right: 6px;
}

/* BUTTON */
.btn-details {
    margin-top: 10px;
    padding: 8px 12px;

    background: #f59e0b;
    border: none;
    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;
    cursor: pointer;

    transition: 0.2s;
}

.btn-details:hover {
    background: #d97706;
}
.stat-details {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.modern-card:hover .stat-details {
    opacity: 1;
    transform: translateY(0);
}
.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    text-align: left;
    padding: 12px;
    font-size: 13px;
    color: #6b7280;
}

.modern-table td {
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.btn-view {
    background: #f59e0b;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.btn-view:hover {
    background: #d97706;
}

.details-row {
    display: none;
}

/* ===== MODERN ORDER DETAILS ===== */

.order-details-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /*force 3 columns */
    gap: 14px;
    margin-top: 12px;
    gap: 14px;
    margin-top: 12px;
}
/* Tablet */
@media (max-width: 992px) {
    .order-details-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .order-details-modern {
        grid-template-columns: 1fr;
    }
}

/* CARD BASE */
.detail-card {
    background: #ffffff; /* FIX: strong contrast */
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 14px;
}
.details-row td {
    background: transparent !important;
}

/* HOVER EFFECT */
.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

/* LABEL */
.detail-card .label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

/* VALUE */
.detail-card .value {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

/* HIGHLIGHT CARD */
.detail-card.highlight {
    background: #fde68a;
    border-left: 4px solid #f59e0b;
    border-color: #f59e0b;

}

/* STATUS CARD */
.detail-card.status {
    background: #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-color: #3b82f6;
}

/* WARNING (NOT SET) */
.detail-card.warning {
    background: #fecaca;
    border-left: 4px solid #ef4444;
    border-color: #ef4444;

}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: #111827;
    color: #fff;

    padding: 8px 14px;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
    border: none;

    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #1f2937;
    transform: translateX(-2px);
}
/* ===============================
   ADMIN TABLE FIX (FORCE STYLE)
=============================== */

.admin-table thead {
    background: #f1f5f9 !important;
}

.admin-table th {
    color: #111827 !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.admin-table td {
    color: #111827 !important;
    font-size: 14px;
}

.admin-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}
/* FORCE STATUS VISIBILITY IN ADMIN */
.admin-table .status {
    display: inline-block !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.admin-table .status.pending {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.admin-table .status.completed {
    background: #d1fae5 !important;
    color: #065f46 !important;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FIX HEADER TEXT VISIBILITY */
.card-header h2 {
    color: #111827;
    font-weight: 600;
}

.card-subtitle {
    color: #6b7280;
}
/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 400px;
}

/* CLICKABLE DAY */
.day {
    cursor: pointer;
    transition: 0.2s;
}

.day:hover {
    transform: translateY(-3px);
}

/* DISABLE FULL DAYS */
.day.full {
    pointer-events: none;
    opacity: 0.6;
}
.truncate {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.status-active {
    background: rgba(34,197,94,0.15);
    color: #166534;
}

.status-blocked {
    background: rgba(239,68,68,0.15);
    color: #991b1b;
}

.status-archived {
    background: rgba(107,114,128,0.15);
    color: #374151;
}

/* ACTION BUTTONS */
.btn-action {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    margin-right: 5px;
    text-decoration: none;
    font-weight: 600;
}

.btn-action.danger {
    background: #ef4444;
    color: white;
}

.btn-action.success {
    background: #22c55e;
    color: white;
}

.btn-action.warning {
    background: #f59e0b;
    color: white;
}
.admin-badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(59,130,246,0.15);
    color: #1d4ed8;
}
/* PAGE HEADER */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.subtitle {
    color: #6b7280;
    font-size: 14px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* TABLE */
.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    text-align: left;
    font-size: 12px;
    color: #6b7280;
    padding: 12px;
}

.modern-table td {
    padding: 14px 12px;
    border-top: 1px solid #f1f5f9;
}

/* BUTTON */
.btn-secondary {
    padding: 8px 14px;
    background: #111827;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

/* EMPTY STATE */
.empty-state-modern {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.empty-state-modern i {
    font-size: 40px;
    margin-bottom: 10px;
}

/* STATUS */
.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
}

.status-archived {
    background: rgba(107,114,128,0.15);
    color: #374151;
}

.product-card::before,
.product-card::after {
    pointer-events: none;
}
/* ========================= */
/* FORGOT PASSWORD MODERN UI */
/* ========================= */

.fp-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;

    padding: 35px 30px;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.2);

    text-align: center;

    animation: fadeInUp 0.5s ease;
}

/* LOGO */
.fp-logo {
    width: 100px;
    margin-bottom: 12px;

    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
}

/* TITLE */
.fp-card h2 {
    color: #ffffff;
    margin-bottom: 6px;
}

.fp-card p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 20px;
}

/* FORM GROUP */
.fp-form-group {
    text-align: left;
    margin-bottom: 18px;
}

/* INPUT WRAPPER */
.fp-input-wrapper {
    position: relative;
}

/* ICON */
.fp-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* INPUT */
.fp-input-wrapper input {
    width: 100%;
    height: 48px;

    padding: 0 14px 0 40px;

    border-radius: 12px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);

    color: #ffffff;
    font-size: 14px;

    transition: all 0.25s ease;
}

/* BUTTON */
.fp-btn {
    width: 100%;
    height: 48px;

    border-radius: 12px;
    border: none;

    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;

    font-weight: 600;
    font-size: 14px;

    cursor: pointer;

    transition: all 0.3s ease;
}

/* BUTTON HOVER */
.fp-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(245,158,11,0.4),
        0 0 15px rgba(245,158,11,0.3);
}

/* BACK LINK */
.fp-back {
    display: inline-block;
    margin-top: 14px;

    font-size: 12px;
    color: #fbbf24;
    text-decoration: none;
}

.fp-back:hover {
    text-decoration: underline;
}

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

/* RESPONSIVE */
@media (max-width: 480px) {
    .fp-card {
        padding: 25px 20px;
    }
}
/* ===== FIX FORGOT PASSWORD INPUT ===== */

.login-modal-content .fp-input-wrapper input {
    width: 100%;
    height: 48px;

    padding: 0 14px 0 40px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.2);

    color: #ffffff;
    font-size: 14px;

    transition: all 0.25s ease;
}

/* ICON FIX */
.fp-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
}
/* === CHROME AUTOFILL FIX === */
.login-modal-content input:-webkit-autofill,
.login-modal-content input:-webkit-autofill:hover,
.login-modal-content input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1e293b inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}
/* =========================================
   🚀 CUSTOMER DASHBOARD (CLEAN MODERN UI)
========================================= */

.customer-dashboard {
    padding: 35px;
}

/* TITLE */
.customer-dashboard h1 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
}

/* SUBTITLE */
.customer-dashboard .subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
}

/* =========================
   CARDS
========================= */

.customer-dashboard .card {
   background: var(--card-bg);
    border-radius: 20px;
    padding: 28px;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.05),
        0 5px 12px rgba(0,0,0,0.03);

    transition: all 0.3s ease;
}

.customer-dashboard .card:hover {
    transform: translateY(-5px);
}

/* =========================
   STAT CARDS
========================= */

.customer-dashboard .stat-card {
   background: var(--card-bg);
    border-radius: 18px;
    padding: 24px;

    display: flex;
    align-items: center;
    gap: 18px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.05);

    transition: all 0.3s ease;
}

.customer-dashboard .stat-card:hover {
    transform: translateY(-5px);
}

/* ICON */
.customer-dashboard .stat-icon {
    width: 52px;
    height: 52px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    background: #f3f4f6;
    color: #111827;

    transition: all 0.3s ease;
}

/* ICON HOVER */
.customer-dashboard .stat-card:hover .stat-icon {
    background: #f59e0b;
    color: white;
}

/* TEXT */
.customer-dashboard .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.customer-dashboard h2 {
    font-size: 30px;
    font-weight: 800;
}

/* =========================
   GRID
========================= */

.customer-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* =========================
   BUTTON
========================= */

.customer-dashboard .btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 10px;
    padding: 10px 16px;

    font-weight: 600;

    transition: all 0.25s ease;
}

.customer-dashboard .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245,158,11,0.35);
}
/* ===============================
   🚀 PREMIUM DASHBOARD UI
=============================== */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 800;
}

.dashboard-header p {
    font-size: 14px;
    color: #64748b;
}

/* ACTION BUTTON */
.dashboard-actions .btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
}

/* ===============================
   💎 GLASS HERO CARD
=============================== */

.card.accent {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 22px;
    padding: 30px;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.06),
        0 6px 15px rgba(0,0,0,0.04);

    position: relative;
    overflow: hidden;
}

/* subtle glow */
.card.accent::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;

    background: radial-gradient(
        circle,
        rgba(245,158,11,0.2),
        transparent
    );
}

/* ===============================
   📊 STAT CARDS (UPGRADE)
=============================== */

.customer-dashboard .stat-card {
    border-radius: 18px;
    padding: 24px;

    background: linear-gradient(135deg, #ffffff, #f9fafb);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.05);

    position: relative;
    overflow: hidden;
}

/* glow effect */
.customer-dashboard .stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 100px;
    height: 100px;

    background: radial-gradient(
        circle,
        rgba(245,158,11,0.15),
        transparent
    );
}

/* ===============================
   🎯 CTA CARD (MAKE IT POP)
=============================== */

.card.split {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fde68a;
}

/* ===============================
   ✨ MICRO INTERACTIONS
=============================== */

.card,
.stat-card {
    transition: all 0.3s ease;
}

.card:hover,
.stat-card:hover {
    transform: translateY(-6px);
}

/* ===============================
   📱 MOBILE POLISH
=============================== */

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* =========================================
   🚀 MODERN DASHBOARD (CLEAN + PREMIUM)
========================================= */

.modern-dashboard {
    padding: 35px;
}

/* ================= HEADER ================= */

.modern-dashboard .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modern-dashboard h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.modern-dashboard p {
    font-size: 14px;
    color: #6b7280;
}

/* ================= CARDS ================= */

.modern-dashboard .card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;

    border: 1px solid #eef2f7;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.04);

    transition: all 0.3s ease;
}

.modern-dashboard .card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.08);
}

/* HERO CARD */
.modern-dashboard .card.accent {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border: none;
}

/* ================= GRID ================= */

.modern-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

/* ================= STAT CARDS ================= */

.modern-dashboard .stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;

    display: flex;
    align-items: center;
    gap: 18px;

    border: 1px solid #f1f5f9;

    box-shadow: 0 8px 25px rgba(0,0,0,0.04);

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* GRADIENT ACCENT */
.modern-dashboard .stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(245,158,11,0.08),
        transparent
    );
}

/* HOVER */
.modern-dashboard .stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* ICON */
.modern-dashboard .stat-icon {
    width: 52px;
    height: 52px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    background: #f3f4f6;
    color: #111827;

    transition: all 0.3s ease;
}

/* ICON HOVER */
.modern-dashboard .stat-card:hover .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    transform: scale(1.1);
}

/* TEXT */
.modern-dashboard .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
}

.modern-dashboard .stat-info h2 {
    font-size: 32px;
    font-weight: 800;
}

/* ================= CTA CARD ================= */

.modern-dashboard .card.split {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fde68a;
}

/* ================= BUTTON ================= */

.modern-dashboard .btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 12px 18px;
    border-radius: 12px;

    font-weight: 600;

    transition: all 0.3s ease;
}

.modern-dashboard .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245,158,11,0.35);
}
/* =========================
   FINAL DARK MODE OVERRIDE
========================= */

body.dark,
body.dark .main {
    background: #0f172a !important;
    color: #e5e7eb !important;
}

/* Cards */
body.dark .card,
body.dark .stat-card,
body.dark .customer-card {
    background: #1e293b !important;
    color: #e5e7eb !important;
}

/* Tables */
body.dark td {
    background: #020617 !important;
}

/* Topbar */
body.dark .topbar {
    background: #020617 !important;
}

/* Inputs */
body.dark input,
body.dark select {
    background: #020617 !important;
    color: #e5e7eb !important;
}

/* Text fix */
body.dark p,
body.dark span {
    color: #cbd5e1 !important;
}
/* =========================
   GLOBAL CARD DARK FIX
========================= */

/* Catch ALL possible card types */
body.dark [class*="card"] {
    background: #1e293b !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}

/* Fix text inside cards */
body.dark [class*="card"] h1,
body.dark [class*="card"] h2,
body.dark [class*="card"] h3,
body.dark [class*="card"] p,
body.dark [class*="card"] span {
    color: #e5e7eb !important;
}

/* Buttons inside cards */
body.dark [class*="card"] .btn {
    opacity: 0.95;
}
body.dark input,
body.dark textarea,
body.dark select {
    background: #020617 !important;
    color: #e5e7eb !important;
    border: 1px solid #334155 !important;
}
/* =========================
   FIX TABLE WHITE BACKGROUNDS
========================= */

body.dark td {
    background: #020617 !important;
    color: #e5e7eb !important;
}

body.dark tr:hover td {
    background: #1e293b !important;
}
/* =========================
   FIX DARK PANELS (ALL SECTIONS)
========================= */

body.dark .main > div,
body.dark .main section,
body.dark .main .container,
body.dark .main .content {
    background: transparent !important;
}
/* =========================
   UNIVERSAL CARD FIX
========================= */

body.dark [class*="card"] {
    background: #1e293b !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}
body.dark .pipeline-step {
    background: #1e293b !important;
}
body.dark .report-table {
    background: #020617 !important;
}

body.dark .report-table th {
    background: #1e293b !important;
}
body.dark .customer-card {
    background: #1e293b !important;
}

body.dark .customer-card.cta {
    background: #1e293b !important; /* overrides gradient */
}
body.dark .appointment-card,
body.dark .date-card,
body.dark .schedule-card {
    background: #1e293b !important;
}
body.dark .form-group,
body.dark .form-container {
    background: transparent !important;
}



/* =========================
   DARK MODE TEXT FIX (CRITICAL)
========================= */

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
    color: #f9fafb !important;
}

body.dark p,
body.dark span,
body.dark small {
    color: #cbd5e1 !important;
}
body.dark .stat-label {
    color: #94a3b8 !important;
}

body.dark .stat-info h2 {
    color: #ffffff !important;
}
body.dark .page-title {
    color: #e5e7eb !important;
}

body.dark .subtitle {
    color: #94a3b8 !important;
}
body.dark .pipeline-step-modern span {
    color: #e5e7eb !important;
}

body.dark .pipeline-step-modern small {
    color: #94a3b8 !important;
}

body.dark .line {
    background: #334155 !important;
}
/* ===== UNIFIED DARK MODE PIPELINE STYLE ===== */

body.dark .pipeline-step-modern .circle {
    background: #0f172a; /* deep navy */
    color: #cbd5f5; /* soft light */

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 
        0 4px 12px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);

    transition: all 0.25s ease;
}

body.dark .pipeline-step-modern.active .circle {
    border: 1px solid #3b82f6;

    box-shadow: 
        0 0 0 2px rgba(59,130,246,0.25),
        0 6px 16px rgba(0,0,0,0.7);
}

body.dark .pipeline-step-modern .circle:hover {
    background: #1e293b;
    color: #ffffff;
}

/* =========================
   DARK MODE ROLE FIX
========================= */

body.dark .role-admin {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

body.dark .role-staff {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

body.dark .role-welder {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

body.dark .role-customer {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}
.role-admin,
.role-staff,
.role-welder,
.role-customer {
    font-weight: 600;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
}
/* ===============================
   ORDER TABLE WITH IMAGE
=============================== */

/* ===============================
   MULTIPLE ORDER IMAGES
=============================== */

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* IMAGE STACK */
.order-images {
    display: flex;
    align-items: center;
}

/* THUMBNAILS */
.order-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;

    border: 1px solid #e5e7eb;
    background: #fff;

    margin-left: -10px; /* STACK EFFECT */
    transition: all 0.25s ease;
    position: relative;
}

/* FIRST IMAGE NO OVERLAP */
.order-thumb:first-child {
    margin-left: 0;
}

/* HOVER EFFECT */
.order-thumb:hover {
    transform: scale(1.35);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ROW HOVER (SUBTLE ZOOM ALL) */
tr:hover .order-thumb {
    transform: scale(1.05);
}

/* DARK MODE */
body.dark .order-thumb {
    border: 1px solid #334155;
    background: #020617;
}

/* HOVER EFFECT */
tr:hover .order-item img {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* TEXT */
.order-info span {
    font-weight: 500;
    color: #111827;
}
body.dark .order-item img {
    border: 1px solid #334155;
    background: #020617;
}

body.dark .order-info span {
    color: #f9fafb;
}
/* ===============================
   +MORE IMAGE INDICATOR
=============================== */

.more-count {
    width: 42px;
    height: 42px;
    border-radius: 10px;

    background: #e5e7eb;
    color: #111827;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 600;

    margin-left: -10px;
    z-index: 5;

    border: 1px solid #d1d5db;
}

/* DARK MODE */
body.dark .more-count {
    background: #334155;
    color: #f9fafb;
    border: 1px solid #475569;
}
/* ===============================
   IMAGE PREVIEW (MEDIUM CARD)
=============================== */

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

/* IMAGE BOX */
.img-box {
    position: relative;

    width: 500px;       /* ✅ MEDIUM SIZE */
    max-width: 90%;

    background: #000;
    border-radius: 12px;

    padding: 10px;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* IMAGE */
#previewImage {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* CLOSE BUTTON (INSIDE TOP RIGHT) */
.img-close {
    position: absolute;
    top: 8px;
    right: 10px;

    background: rgba(0,0,0,0.6);
    color: #fff;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    cursor: pointer;

    font-size: 18px;
    font-weight: bold;

    z-index: 10;
}

/* NAV BUTTONS */
.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0,0,0,0.5);
    color: white;

    border: none;
    padding: 8px 12px;

    cursor: pointer;
    border-radius: 8px;
}

/* LEFT / RIGHT */
.img-nav.left { left: -45px; }
.img-nav.right { right: -45px; }

/* HOVER */
.img-nav:hover,
.img-close:hover {
    background: rgba(0,0,0,0.8);
}
/* ===============================
   FINAL ALIGNMENT (CLEAN FIX)
=============================== */
/* ===== TRUE ALIGNMENT FIX ===== */

.users-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}
.users-filter input {
    position: relative;
    top: -7px;
}
.users-filter button {
    position: relative;
    top: -7px;
}

/* 🔥 FORCE SAME RENDERING MODEL */
.filter-select,
.filter-input,
.filter-btn {
    height: 42px;
    display: block;            /* 🔥 removes inline baseline behavior */
    box-sizing: border-box;
}

/* 🔥 MAKE ALL ELEMENTS IDENTICAL BOXES */
.filter-control {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    display: flex;
    align-items: center; 
}

/* 🔥 REMOVE SELECT INTERNAL OFFSET */
.filter-select {
    padding: 0 14px;
}

/* 🔥 INPUT */
.filter-input {
    padding: 0 14px;
}

.filter-btn {
    background: #0f172a;
    color: white;
    cursor: pointer;
}
/* ===============================
   MODERN PAGINATION UI
=============================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

/* Base Button */
.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    background: #111827; /* dark base */
    color: #fff;

    border: 1px solid transparent;

    transition: all 0.2s ease;
    cursor: pointer;
}

/* Hover */
.page-btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

/* Active Page */
.page-btn.active {
    background: #f59e0b; /* your theme orange */
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Prev/Next Buttons */
.nav-btn {
    background: #020617;
}

/* Disabled feel (optional if needed later) */
.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}
/* ===== FONT AWESOME SEARCH INPUT ===== */

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-92%);
    
    font-size: 14px;
    color: #6b7280;

    z-index: 10; /* VERY IMPORTANT */
}

.search-input {
    padding-left: 36px !important;
    position: relative;
    z-index: 1;
}

.order-details-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.detail-card.neutral {
    border-left: 4px solid #9ca3af; /* gray accent */
}

.details-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
}
.search-card {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #3b82f6;
}
.search-dropdown {
    position: absolute;
    top: 50px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.search-group {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    padding: 8px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #eee;
}

.search-item {
    padding: 12px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: 0.2s;
}

.search-item:hover {
    background: #f3f4f6;
}

.search-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.search-sub {
    font-size: 12px;
    color: #666;
}
.search-item.active {
    background: #747678;
}

mark {
    background: #fde68a;
    padding: 0 2px;
    border-radius: 3px;
}
.profile-container {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.profile-card {
    width: 100%;
    max-width: 800px;

    display: flex;
    gap: 30px;

    background: #ffffff;
    border-radius: 16px;
    padding: 30px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
body.dark .profile-card {
    background: #0f172a;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e5e7eb;
    margin: 0 auto 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-form .form-group {
    margin-bottom: 15px;
}

.profile-form input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}
body.dark .profile-card {
    background: #0f172a;
}

body.dark .profile-form input {
    background: #1e293b;
    color: #fff;
    border: 1px solid #334155;
}
.profile-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: calc(100vh - 80px); /* adjust based on header */
    padding: 20px;
}
.profile-card {
    display: flex;
    gap: 30px;
    width: 750px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* LEFT SIDE */
.profile-left {
    width: 35%;
    text-align: center;
}

.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e5e7eb;
    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIGHT SIDE */
.profile-right {
    width: 65%;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* BUTTONS */
.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-outline {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    color: #3b82f6;
    text-decoration: none;
}
body.dark .profile-card {
    background: #0f172a;
}

body.dark .form-group input {
    background: #1e293b;
    color: white;
    border: 1px solid #334155;
}
.upload-box {
    margin: 20px 0;
}

.upload-box input {
    width: 100%;
}
body.dark input[type="password"] {
    background: #1e293b;
    color: white;
}
.main-content {
    margin-left: 250px; /* match your sidebar width */
    min-height: 100vh;

    display: flex;
    justify-content: center;  /* 🔥 centers horizontally */
    align-items: flex-start;  /* top aligned */

    padding: 40px 20px;
}
/* ===============================
   🔧 GLOBAL LAYOUT CONTROL
   Change these values anytime
=============================== */
:root {
    --sidebar-width: 250px;

    --content-padding-x: 20px;
    --content-padding-y: 40px;

    --card-max-width: 800px;
    --card-offset-x: 98px;   /* ← move LEFT/RIGHT */
    --card-offset-y: 15px;   /* ← move UP/DOWN */
}

/* ===============================
   MAIN CONTENT AREA
=============================== */
.main-content {
    margin-left: var(--sidebar-width);

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: var(--content-padding-y) var(--content-padding-x);
}

/* ===============================
   WRAPPER (CENTER CONTROL)
=============================== */
.profile-wrapper {
    width: 100%;

    display: flex;
    justify-content: center;
}

/* ===============================
   PROFILE CARD (ADJUST HERE)
=============================== */
.profile-card {
    width: 100%;
    max-width: var(--card-max-width);

    transform: translate(
        var(--card-offset-x),
        var(--card-offset-y)
    );
}

/* ===============================
   SMALL CARD (UPLOAD PAGE)
=============================== */
.profile-card.small {
    max-width: 420px;
}

/* ===============================
   OPTIONAL: PERFECT CENTER MODE
   (enable if you want exact center)
=============================== */
.center-perfect {
    align-items: center !important;
}

.contact-overlay {
    pointer-events: none;
}
/* MODAL */
.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.custom-modal-content {
    background: #111827;
    padding: 25px;
    border-radius: 12px;
    width: 350px;
    color: #fff;
    animation: fadeIn 0.3s ease;
}

.close-modal {
    float: right;
    font-size: 20px;
    cursor: pointer;
}

/* VIEW BUTTON */
.btn-action.info {
    background: #3b82f6;
    color: #fff;
}
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.inventory-card {
    background: #111827;
    border-radius: 14px;
    padding: 18px;
    color: #fff;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.inventory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.inv-header h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.inv-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock h2 {
    font-size: 24px;
}

.badge.low {
    background: #ef4444;
    padding: 5px 10px;
    border-radius: 8px;
}

.badge.ok {
    background: #22c55e;
    padding: 5px 10px;
    border-radius: 8px;
}
.stock-card {
    max-width: 500px;
    margin: auto;
    padding: 25px;
}

.stock-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    color: #ccc;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #1f2937;
    color: #fff;
}

.btn-primary {
    background: #3b82f6;
    padding: 12px;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.alert.success {
    background: #22c55e;
}

.alert.error {
    background: #ef4444;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;

    text-decoration: none;
    font-weight: 500;

    border: 1px solid rgba(0,0,0,0.1);

    background: #f3f4f6;   /* light gray */
    color: #111827;

    transition: 0.2s ease;
}

.btn-back:hover {
    background: #e5e7eb;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;

    text-decoration: none;
    font-weight: 500;

    border: 1px solid rgba(0,0,0,0.1);

    background: #f3f4f6;   /* light gray */
    color: #111827;

    transition: 0.2s ease;
}

.btn-back:hover {
    background: #e5e7eb;
}