/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ============================================
   CONTAINER & CARD STYLES
   ============================================ */

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   HEADING STYLES
   ============================================ */

h1, h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
}

/* ============================================
   FORM STYLES
   ============================================ */

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

button,
.btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active,
.btn:active {
    transform: translateY(0);
}

/* ============================================
   MESSAGE STYLES
   ============================================ */

.error-message,
[style*="color: red"] {
    color: #e74c3c !important;
    background: #ffe6e6;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.success-message,
[style*="color: green"] {
    color: #27ae60 !important;
    background: #e6ffe6;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ============================================
   LINK STYLES
   ============================================ */

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.link-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.link-section p {
    color: #666;
    font-size: 14px;
}

.form-note {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.logout-form {
    display: inline-block;
}

/* ============================================
   HR STYLES
   ============================================ */

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
    margin: 0;
    color: #333;
}

.dashboard-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 600px) {
    .container,
    .card {
        padding: 20px;
    }

    h1, h2 {
        font-size: 22px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    select,
    button {
        font-size: 16px;
    }
}

/* ============================================
   CLIENT DASHBOARD
   ============================================ */

.client-page {
    --ink: #17211b;
    --muted: #6f776f;
    --cream: #f5f3ec;
    --paper: #fffef9;
    --forest: #1f3a2d;
    --sage: #91a88f;
    --line: #e5e3da;
    display: block;
    min-height: 100vh;
    padding: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
}

.client-page h1,
.client-page h2,
.client-page h3,
.client-page p {
    margin: 0;
    text-align: left;
}

.client-page h1,
.client-page h2,
.client-page h3 {
    color: var(--ink);
}

.client-shell { min-height: 100vh; }

.client-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    width: 252px;
    padding: 30px 22px 22px;
    display: flex;
    flex-direction: column;
    background: var(--forest);
    color: #fff;
}

.client-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 30px;
    color: #fff;
}

.client-brand:hover { color: #fff; text-decoration: none; }
.client-brand strong { display: block; font: 700 21px/1.1 'Playfair Display', serif; letter-spacing: .3px; }
.client-brand small { display: block; margin-top: 4px; color: #a9b9ad; font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid #79917f;
    border-radius: 50% 50% 50% 8px;
    color: #d8e2d7;
    font: 700 22px 'Playfair Display', serif;
}

.nav-label {
    padding: 0 12px 10px;
    color: #829589;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-label-secondary { margin-top: 27px !important; }

.client-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 3px 0;
    padding: 12px 13px;
    border-radius: 8px;
    color: #c2cec5;
    font-size: 14px;
    font-weight: 500;
}

.client-nav a:hover,
.client-nav a.active { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.client-nav a.active::before { content: ''; position: absolute; left: -22px; width: 3px; height: 24px; border-radius: 0 3px 3px 0; background: #b8c9ad; }
.nav-icon { width: 19px; color: #aebfaf; font-size: 18px; text-align: center; }
.nav-count { margin-left: auto; min-width: 23px; padding: 2px 7px; border-radius: 20px; background: #435b49; font-size: 11px; text-align: center; }

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 18px 5px 0;
    border-top: 1px solid rgba(255,255,255,.11);
}

.mini-profile { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.mini-profile strong, .mini-profile small { display: block; max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile strong { font-size: 13px; color: #fff; }
.mini-profile small { margin-top: 2px; color: #8fa095; font-size: 11px; }
.profile-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: #d8c8a8; color: #293c30; font-weight: 700; }
.sidebar-footer form { display: block; }
.logout-icon { padding: 8px; background: transparent; color: #9fb0a4; font-size: 17px; box-shadow: none; }
.logout-icon:hover { color: #fff; transform: none; box-shadow: none; }

.client-main { min-height: 100vh; margin-left: 252px; padding: 34px 42px 24px; }
.client-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow, .section-kicker { color: #879087; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.client-topbar h1 { margin-top: 5px; font: 600 27px/1.2 'Playfair Display', serif; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.notification-button { position: relative; display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: none; }
.notification-button:hover { transform: none; box-shadow: 0 5px 16px rgba(31,58,45,.08); }
.notification-button i { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border: 1px solid var(--paper); border-radius: 50%; background: #d18764; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 7px; background: var(--forest); color: #fff; font-size: 13px; font-weight: 600; }
.primary-action { min-height: 43px; padding: 0 17px; }
.primary-action:hover, .secondary-action:hover { background: #2c4b39; color: #fff; text-decoration: none; }

.welcome-banner { position: relative; min-height: 264px; padding: 42px 45% 40px 42px; overflow: hidden; border-radius: 14px; background: #dfe5d9; }
.welcome-copy { position: relative; z-index: 2; }
.section-kicker { color: #657767; }
.welcome-banner h2 { max-width: 590px; margin-top: 10px; font: 600 34px/1.16 'Playfair Display', serif; }
.welcome-banner p { max-width: 590px; margin-top: 13px; color: #667068; font-size: 13px; line-height: 1.65; }
.banner-action { display: inline-flex; gap: 12px; align-items: center; margin-top: 21px; color: var(--forest); font-size: 13px; font-weight: 700; }
.banner-action:hover { color: #49624e; text-decoration: none; }

.room-illustration { position: absolute; inset: 0 0 0 56%; overflow: hidden; background: linear-gradient(125deg, rgba(255,255,255,.12), transparent); }
.sun-shape { position: absolute; top: -82px; right: -25px; width: 230px; height: 230px; border-radius: 50%; background: rgba(241,238,216,.68); }
.picture-frame { position: absolute; top: 43px; left: 32%; width: 75px; height: 88px; padding: 8px; border: 4px solid #9a8b74; background: #eee8d6; transform: rotate(2deg); }
.picture-frame span { display: block; height: 100%; background: linear-gradient(145deg, #b9c3a8 50%, #d9c6a1 50%); }
.floor-lamp { position: absolute; left: 17%; bottom: 35px; width: 65px; height: 165px; }
.floor-lamp i { position: absolute; left: 30px; bottom: 0; width: 4px; height: 125px; background: #4f5c50; transform: rotate(4deg); }
.floor-lamp b { position: absolute; top: 0; width: 65px; height: 48px; border-radius: 40px 40px 5px 5px; background: #d0b986; }
.sofa { position: absolute; right: 3%; bottom: 24px; width: 245px; height: 95px; border-radius: 20px 20px 9px 9px; background: #879b87; box-shadow: inset 0 -18px rgba(53,77,59,.15); }
.sofa::before, .sofa::after { content: ''; position: absolute; top: -21px; width: 105px; height: 60px; border-radius: 15px; background: #94a894; }
.sofa::before { left: 10px; } .sofa::after { right: 10px; }
.sofa span { position: absolute; z-index: 2; top: -16px; left: 91px; width: 62px; height: 56px; border-radius: 8px; background: #d4bd8c; transform: rotate(-4deg); }
.sofa i, .sofa b { position: absolute; bottom: -13px; width: 6px; height: 17px; background: #3f5745; }
.sofa i { left: 30px; } .sofa b { right: 30px; }
.plant { position: absolute; right: 6%; bottom: 112px; width: 75px; height: 90px; }
.plant i { position: absolute; bottom: 25px; width: 28px; height: 55px; border-radius: 90% 10% 90% 10%; background: #718b70; transform-origin: bottom; }
.plant i:nth-child(1) { left: 20px; transform: rotate(-28deg); } .plant i:nth-child(2) { left: 36px; transform: rotate(18deg); } .plant i:nth-child(3) { left: 29px; bottom: 30px; transform: rotate(-4deg); }
.plant b { position: absolute; bottom: 0; left: 22px; width: 42px; height: 32px; border-radius: 3px 3px 14px 14px; background: #b78c6b; }

.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.client-stat-card { display: grid; grid-template-columns: 48px 1fr; gap: 0 13px; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.stat-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; font-size: 19px; }
.stat-sage { background: #e4ebe1; color: #4a694d; } .stat-amber { background: #f3ead6; color: #9a733c; } .stat-blue { background: #e2e9e7; color: #496761; }
.client-stat-card div { display: flex; align-items: baseline; gap: 9px; }
.client-stat-card strong { font: 700 25px 'Playfair Display', serif; }
.client-stat-card div span { color: #424a43; font-size: 12px; font-weight: 600; }
.client-stat-card small { color: #90958f; font-size: 10px; }

.client-content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 18px; margin-top: 18px; }
.content-panel, .quick-section { padding: 25px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin-top: 4px; font: 600 20px 'Playfair Display', serif; }
.panel-heading > a { color: #68756b; font-size: 11px; font-weight: 600; }
.project-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }
.project-empty h3, .project-empty p { text-align: center; }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 13px; border-radius: 50%; background: #edf0e9; color: #667a68; font-size: 22px; }
.project-empty h3 { font: 600 17px 'Playfair Display', serif; }
.project-empty p { max-width: 390px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.secondary-action { margin-top: 15px; padding: 10px 15px; }
.activity-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.activity-empty > span { margin-bottom: 8px; color: #a1aaa1; font-size: 30px; }
.activity-empty p { font-size: 12px; text-align: center; }
.activity-empty small { margin-top: 4px; color: #9ba09b; font-size: 10px; }

.quick-section { margin-top: 18px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.quick-actions a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.quick-actions a:hover { border-color: #aab7aa; background: #fafaf5; text-decoration: none; }
.quick-actions a > span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #e9ede4; color: #5e765f; font-size: 17px; }
.quick-actions strong { font-size: 12px; }
.quick-actions small { color: #929792; font-size: 10px; }
.client-footer { display: flex; justify-content: space-between; padding: 23px 2px 0; color: #969b95; font-size: 10px; }

@media (max-width: 1050px) {
    .client-sidebar { width: 210px; }
    .client-main { margin-left: 210px; padding: 28px; }
    .welcome-banner { padding-right: 38%; }
    .room-illustration { left: 66%; }
    .client-stat-card { grid-template-columns: 42px 1fr; padding: 15px; }
    .stat-icon { width: 42px; height: 42px; }
    .client-stat-card div { display: block; }
    .client-stat-card div span { display: block; }
}

@media (max-width: 820px) {
    .client-sidebar { position: static; width: 100%; padding: 18px 22px; flex-direction: row; align-items: center; }
    .client-brand { padding: 0; }
    .client-nav { display: none; }
    .sidebar-footer { margin: 0 0 0 auto; padding: 0; border: 0; }
    .mini-profile small { display: none; }
    .client-main { margin-left: 0; padding: 24px; }
    .client-content-grid { grid-template-columns: 1fr; }
    .welcome-banner { padding-right: 35%; }
    .room-illustration { left: 70%; }
}

@media (max-width: 620px) {
    .client-main { padding: 20px 15px; }
    .client-topbar { align-items: flex-start; }
    .client-topbar h1 { font-size: 22px; }
    .primary-action { width: 43px; padding: 0; font-size: 0; }
    .primary-action span { font-size: 20px; }
    .welcome-banner { min-height: auto; padding: 30px 25px; }
    .welcome-banner h2 { font-size: 29px; }
    .room-illustration { display: none; }
    .client-stats, .quick-actions { grid-template-columns: 1fr; }
    .client-stat-card div { display: flex; }
    .client-stat-card div span { display: inline; }
    .client-footer { flex-direction: column; gap: 6px; }
    .mini-profile strong { max-width: 78px; }
}

body{
    background: linear-gradient(
        135deg,
        #ffffff,
        #f5f5f5
    );
    font-family: 'Segoe UI', sans-serif;
}

.login-container{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding: 20px;
}

.login-card{
    width: 100%;
    max-width: 900px;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    background:white;
}

.left-panel{
    background:#ffffff;
    padding:40px;
    text-align:center;
}

.left-panel img{
    width:220px;
}

.right-panel{
    background:#0f2b7a;
    color:white;
    padding:50px;
}

.btn-login{
    background:#e32020;
    border:none;
    width:100%;
    color:white;
    font-weight:bold;
    padding:12px;
    border-radius:10px;
}

.btn-login:hover{
    background:#c41717;
}

.form-control{
    border-radius:10px;
}

@media (max-width: 768px) {
    .left-panel {
        padding: 20px;
    }
    .left-panel img {
        width: 150px;
    }
    .right-panel {
        padding: 30px 20px;
    }
}