@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--ink:#202630;--muted:#78818d;--line:#e8e9ec;--bg:#f5f6f8;--gold:#bd9b61;--nav:#171c24;--white:#fff}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.sidebar{width:252px;background:var(--nav);color:#f4f5f7;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:24px 16px;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:2px 8px 28px}.brand b{display:block;font:700 14px Manrope}.brand small,.user-mini small{display:block;color:#9da5af;font-size:11px;margin-top:3px}.brand-mark{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#d5bd8c,#9d7a43);color:#202630;display:grid;place-items:center;font:800 19px Manrope;box-shadow:0 8px 24px #b18d4c33}.brand-mark.small{width:36px;height:36px;border-radius:11px;font-size:14px}nav{display:flex;flex-direction:column;gap:5px}nav a{padding:11px 12px;border-radius:9px;color:#bac1ca;font-weight:500;display:flex;align-items:center;gap:12px}nav a span{width:18px;text-align:center;font-size:17px;color:#d0b57d}nav a:hover,nav a.active{background:#2b323d;color:#fff}.nav-label{font-size:10px;letter-spacing:1.5px;color:#78818c;padding:20px 12px 6px;font-weight:700}.sidebar-bottom{margin-top:auto}.user-mini{display:flex;align-items:center;gap:10px;padding:14px 7px;border-top:1px solid #333b46}.user-mini b{font-size:12px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e9dfcb;color:#51452f;font-weight:700}.logout{display:block;color:#c5cbd2;padding:10px 8px;font-size:12px}.main{margin-left:252px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:5}.topbar b{font-weight:600}.muted{color:var(--muted)}.top-right{display:flex;align-items:center;gap:16px}.today{font-size:12px;color:var(--muted)}.content{padding:30px 34px;flex:1;max-width:1600px;width:100%;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.page-heading h1{font:800 27px Manrope;margin:4px 0 7px;letter-spacing:-.7px}.page-heading p{margin:0}.eyebrow{font-size:10px;letter-spacing:1.7px;color:#a18451;font-weight:700;margin:0 0 7px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;padding:11px 16px;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap}.btn.primary{background:#202630;color:#fff;box-shadow:0 4px 12px #20263018}.btn.primary:hover{background:#394452}.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}.btn.full{width:100%;margin-top:18px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat-card,.panel{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 3px 12px #1d263008}.stat-card{padding:19px 20px;position:relative}.stat-card p{color:var(--muted);font-size:12px;margin:0 0 10px}.stat-card strong{font:800 24px Manrope}.stat-icon{position:absolute;right:18px;top:17px;width:35px;height:35px;border-radius:10px;background:#f4efe5;color:#987a48;display:grid;place-items:center;font-size:18px}.panel{padding:22px;margin-bottom:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.panel h2{font:700 16px Manrope;margin:0 0 5px}.panel-head p{font-size:12px;margin:0}.text-link{color:#967744;font-weight:700;font-size:12px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:#818995;font-size:10px;text-transform:uppercase;letter-spacing:.8px;font-weight:700;padding:12px 13px;border-bottom:1px solid var(--line)}td{padding:14px 13px;border-bottom:1px solid #f0f1f3;font-size:12px}tbody tr:last-child td{border-bottom:0}.pill{display:inline-block;background:#f2f3f5;color:#5d6671;border-radius:30px;padding:5px 9px;font-size:10px;text-transform:capitalize}.progress{height:6px;background:#edf0f2;border-radius:20px;overflow:hidden;min-width:75px;display:inline-block;vertical-align:middle}.progress i{display:block;height:100%;background:var(--gold);border-radius:20px}.empty{padding:35px;text-align:center;color:var(--muted);font-size:13px}.form-panel{max-width:900px}.form-panel form{max-width:100%}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px;margin-bottom:22px}.form-grid>div{min-width:0}.span-2{grid-column:span 2}label{display:block;font-size:11px;font-weight:700;color:#59616d;margin-bottom:7px}input,select,textarea{width:100%;border:1px solid #dfe2e6;border-radius:7px;padding:11px 12px;background:#fff;color:var(--ink);outline:none;font-size:12px}input:focus,select:focus,textarea:focus{border-color:#b89b68;box-shadow:0 0 0 3px #bd9b611c}textarea{min-height:85px;resize:vertical}.form-panel form>.btn{margin-top:4px}.check-grid{display:flex;flex-wrap:wrap;gap:9px}.check{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:7px;padding:9px 10px;font-weight:500}.check input{width:auto}.section-title{font:700 15px Manrope;margin:25px 0 12px}.quote-table input{min-width:85px}.quote-table td:first-child input{min-width:210px}.remove-row{border:0;background:#f8eeee;color:#a34b4b;border-radius:6px;padding:7px 10px;cursor:pointer}.totals{max-width:330px;margin:20px 0 22px auto;display:grid;gap:10px}.totals>div:not(.total-line){display:grid;grid-template-columns:1fr 1fr;gap:10px}.total-line{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line);font-size:12px}.total-line.grand{font:800 16px Manrope;border:0;border-top:1px solid var(--line);padding-top:14px}.invoice{max-width:950px;padding:38px}.invoice-head{display:flex;justify-content:space-between;gap:20px}.invoice-head h1{font:800 23px Manrope;margin:0}.invoice-head h2{font:800 18px Manrope;margin:0}.right{text-align:right}.invoice hr{border:0;border-top:1px solid var(--line);margin:24px 0}.invoice-total{margin:20px 0 25px auto;max-width:300px}.invoice-total p,.invoice-total h2{display:flex;justify-content:space-between;font-size:12px}.invoice-total h2{font:800 17px Manrope;border-top:1px solid var(--line);padding-top:13px}.alert{padding:12px 15px;border-radius:8px;margin-bottom:18px;font-size:12px}.alert.success{background:#eaf6ef;color:#287447}.alert.danger{background:#fbeeee;color:#9d3d3d}.notice{padding:13px;background:#fff7e8;color:#86652f;border-radius:8px;font-size:12px;margin-bottom:16px}.portal-row{display:grid;grid-template-columns:1fr 150px 40px;gap:18px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.portal-row small{display:block;color:var(--muted);margin-top:5px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 10%,#e9e0d0,transparent 35%),#f3f4f6}.login-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:38px;width:min(100%,430px);box-shadow:0 20px 70px #26303b12}.login-card h1{font:800 27px Manrope;margin:8px 0}.login-card form{margin:25px 0;display:grid;gap:9px}.login-card form label{margin-top:7px}.login-card small{display:block;text-align:center}.setup-card{width:min(100%,520px);max-height:95vh;overflow:auto}.setup-card form{gap:8px}.setup-card hr{width:100%;border:0;border-top:1px solid var(--line);margin:12px 0}.menu-btn{display:none;border:0;background:none;font-size:20px}footer{padding:17px 34px;color:#9aa1aa;font-size:10px;border-top:1px solid var(--line);background:#fff}footer span{float:right}.sidebar.open{transform:translateX(0)}@media(max-width:1050px){.stats-grid{grid-template-columns:repeat(2,1fr)}.content{padding:24px}}@media(max-width:720px){.sidebar{transform:translateX(-100%);transition:.2s;box-shadow:10px 0 35px #0002}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.menu-btn{display:block}.topbar{padding:0 16px;height:60px}.today{display:none}.content{padding:22px 15px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:23px}.stats-grid{gap:10px}.stat-card{padding:15px}.stat-card strong{font-size:20px}.stat-icon{width:29px;height:29px;right:12px;top:12px}.form-grid{grid-template-columns:1fr;gap:13px}.span-2{grid-column:span 1}.panel{padding:16px}.invoice{padding:20px}.invoice-head{flex-direction:column}.right{text-align:left}.portal-row{grid-template-columns:1fr 70px 30px;gap:8px}.quote-table td:first-child input{min-width:150px}footer{padding:15px}footer span{float:none;display:block;margin-top:5px}}@media print{body{background:#fff}.sidebar,.topbar,footer,.no-print{display:none!important}.main{margin:0}.content{padding:0}.panel{border:0;box-shadow:none}.invoice{max-width:none;padding:0}.invoice table{white-space:normal}}

/* =================================
   INTERIORPRO - PREMIUM SIDEBAR UI
   WEBFOXI DEVELOPMENT
================================= */

/* Premium sidebar */
.sidebar {
    background: #151D2B;
    border-right: 1px solid #273246;
}

/* Brand logo */
.brand-mark {
    background: linear-gradient(
        135deg,
        #E5CD98,
        #B58B43
    );
    color: #17202E;
    box-shadow: 0 5px 20px #C9A45C30;
}

/* Sidebar menu */
nav a {
    color: #B9C2CF;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

/* Menu icons */
nav a span {
    color: #D1B477;
}

/* Hover effect */
nav a:hover {
    background: #253247;
    color: #FFFFFF;
    border-color: #35435A;
    transform: translateX(3px);
}

/* Active menu */
nav a.active {
    background: linear-gradient(
        100deg,
        #E0C17D,
        #C29A52
    );
    color: #17202E;
    border-color: #D8B96F;
    box-shadow: 0 5px 15px #C9A45C25;
}

/* Active menu icon */
nav a.active span {
    color: #17202E;
}

/* Sidebar section headings */
.nav-label {
    color: #C5A66B;
    letter-spacing: 1.8px;
}

/* Sidebar user divider */
.user-mini {
    border-top: 1px solid #344052;
}

/* InteriorPro - Active Menu Fix */

.sidebar nav a.active {
    background: linear-gradient(
        135deg,
        #E0C17D,
        #C29A52
    ) !important;

    color: #17202E !important;
    font-weight: 700;
    border-radius: 10px;
}

.sidebar nav a.active span {
    color: #17202E !important;
}

/* ==================================
   INTERIORPRO - PREMIUM STAT CARDS
================================== */

.stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #E9E5DC;
    border-radius: 15px;
    padding: 23px;
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(25, 35, 50, 0.04);
    transition: all 0.3s ease;
}

/* Gold top accent */
.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #B58B43,
        #E7D09A,
        #B58B43
    );
}

/* Hover animation */
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(25, 35, 50, 0.09);
    border-color: #D7BD85;
}

/* Card heading */
.stat-card p {
    font-size: 12px;
    font-weight: 600;
    color: #7C8490;
    margin-bottom: 14px;
}

/* Main numbers */
.stat-card strong {
    font-family: 'Manrope', sans-serif;
    font-size: 27px;
    font-weight: 800;
    color: #182334;
    letter-spacing: -0.7px;
}

/* Icon background */
.stat-icon {
    background: #F5F0E5;
    color: #A17B3D;
    border: 1px solid #EDE3CF;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Icon hover */
.stat-card:hover .stat-icon {
    background: #C9A45C;
    color: #FFFFFF;
    transform: scale(1.08);
}


/* ==================================
   INTERIORPRO - PREMIUM PROJECT TABLE
================================== */

/* Table container */
.table-wrap {
    border-radius: 10px;
    overflow-x: auto;
}

/* Table headings */
table th {
    color: #98743B;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 16px 14px;
    background: #FAF8F3;
    border-bottom: 1px solid #E9E1D2;
}

/* Table cells */
table td {
    padding: 17px 14px;
    color: #344052;
    font-size: 12px;
    border-bottom: 1px solid #F0EEE9;
}

/* Row hover */
table tbody tr {
    transition: background 0.2s ease;
}

table tbody tr:hover {
    background: #FBF8F1;
}

/* Last row */
table tbody tr:last-child td {
    border-bottom: none;
}

/* Project name */
table td:first-child {
    font-weight: 700;
    color: #1B2637;
}

/* Status badge */
.pill {
    background: #F5EFE2;
    color: #947039;
    border: 1px solid #E9DFC9;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Progress bar */
.progress {
    height: 7px;
    background: #ECEEF1;
    border-radius: 20px;
    overflow: hidden;
}

.progress i {
    background: linear-gradient(
        90deg,
        #B58B43,
        #E3C77F
    );
    border-radius: 20px;
}


/* ==========================================
   INTERIORPRO - FINAL CARD HOVER SYSTEM
========================================== */

.stats-grid .stat-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    will-change: transform;
}

/* Main hover animation */
.stats-grid .stat-card:hover {
    transform: translateY(-8px) scale(1.015) !important;
    box-shadow: 0 18px 38px rgba(31,41,55,0.15) !important;
    border-color: #C9A45C !important;
    z-index: 2;
}

/* Gold accent animation */
.stats-grid .stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #B58B43,
        #E7D09A,
        #B58B43
    );
    transition: height 0.3s ease;
}

.stats-grid .stat-card:hover::before {
    height: 6px;
}

/* Icon animation */
.stats-grid .stat-card .stat-icon {
    transition: all 0.35s ease;
}

.stats-grid .stat-card:hover .stat-icon {
    transform: rotate(-10deg) scale(1.12);
    background: #C9A45C !important;
    color: #FFFFFF !important;
    border-color: #C9A45C !important;
}

/* =====================================
   INTERIORPRO - PREMIUM UI ANIMATIONS
   WebFoxi Development
===================================== */

/* Smooth transitions */
.stat-card,
.panel,
.btn,
.pill,
nav a {
    transition: all 0.3s ease !important;
}

/* Dashboard cards hover */
.stat-card:hover {
    transform: translateY(-5px);
    border-color: #bd9b61;
    box-shadow: 0 12px 28px rgba(189,155,97,0.13);
}

/* Panel hover */
.panel {
    transition: box-shadow 0.3s ease,
                border-color 0.3s ease !important;
}

.panel:hover {
    border-color: #e2d2b4;
    box-shadow: 0 10px 30px rgba(32,38,48,0.06);
}

/* Table row hover */
.main .panel table tbody tr {
    transition: background 0.25s ease,
                transform 0.25s ease;
}

.main .panel table tbody tr:hover {
    background: #fbf8f1;
}

/* Progress bar animation */
.progress i {
    animation: progressReveal 1.2s ease-out;
    transform-origin: left;
}

@keyframes progressReveal {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Gold button hover */
.btn.primary:hover {
    background: #bd9b61 !important;
    color: #202630 !important;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(189,155,97,0.25);
}

/* Status badge hover */
.pill:hover {
    background: #f4ead7;
    color: #8b6934;
}

/* Sidebar hover */
nav a:hover {
    transform: translateX(4px);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* InteriorPro Projects Overview */

.project-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 23px;
}

.project-summary-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e9ec;
    border-radius: 13px;
    padding: 23px 21px;
    box-shadow: 0 3px 12px #1d263008;
    transition: .3s ease;
}

.project-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,#bd9b61,#e5d1a5);
}

.project-summary-card:hover {
    transform: translateY(-5px);
    border-color: #bd9b61;
    box-shadow: 0 12px 28px #bd9b6120;
}

.project-summary-card span {
    display: block;
    color: #78818d;
    font-size: 12px;
    margin-bottom: 12px;
}

.project-summary-card strong {
    display: block;
    font: 800 25px Manrope,sans-serif;
    color: #202630;
    overflow-wrap: anywhere;
}

.project-summary-card small {
    display: block;
    color: #9299a3;
    font-size: 10px;
    margin-top: 9px;
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 110px;
}

.project-progress > div {
    flex: 1;
    height: 7px;
    background: #edf0f2;
    border-radius: 20px;
    overflow: hidden;
}

.project-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#bd9b61,#e4c98f);
    border-radius: 20px;
    animation: projectFill 1s ease-out;
    transform-origin: left;
}

.project-progress small {
    font-size: 10px;
    color: #78818d;
}

@keyframes projectFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media(max-width:1050px) {
    .project-summary-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:520px) {
    .project-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* PROJECTS SUMMARY - VISUAL FIX */

.project-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 17px !important;
    margin-bottom: 23px !important;
    width: 100%;
}

.project-summary-grid .project-summary-card {
    display: block !important;
    min-width: 0;
    padding: 23px 21px !important;
    background: #ffffff !important;
    border: 1px solid #e8e9ec !important;
    border-radius: 13px !important;
    box-shadow: 0 3px 12px rgba(29,38,48,.05) !important;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}

.project-summary-grid .project-summary-card:hover {
    transform: translateY(-5px) !important;
    border-color: #bd9b61 !important;
    box-shadow: 0 12px 28px rgba(189,155,97,.18) !important;
}

@media(max-width:1050px) {
    .project-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media(max-width:520px) {
    .project-summary-grid {
        grid-template-columns: 1fr !important;
    }
}
/* PROJECT SUMMARY CARD FIX */
.project-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 23px;
}

.project-summary-grid .project-summary-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e9ec;
    border-radius: 13px;
    padding: 23px 21px;
    box-shadow: 0 3px 12px rgba(29,38,48,.05);
}

@media(max-width:1050px) {
    .project-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:520px) {
    .project-summary-grid {
        grid-template-columns: 1fr;
    }
}