/* ========================================================
   RANDEVUM İŞLETMEM - MASAÜSTÜ WEB DASHBOARD STİLLERİ
   ======================================================== */

:root {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #fff7ed;
    --primary-border: #ffedd5;
    
    --navy-dark: #0f172a;
    --navy-card: #1e293b;
    --navy-sub: #334155;
    --navy-border: #475569;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-sub: #94a3b8;
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #3b82f6;
    --info-light: #eff6ff;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sidebar-width: 280px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

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

body.desktop-body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography & Helpers */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

.text-orange { color: var(--primary) !important; }
.text-blue { color: var(--info) !important; }
.text-green { color: var(--success) !important; }
.text-red { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-sm { font-size: 0.85rem !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.highlight-orange { color: var(--primary); }
.mt-4 { margin-top: 1.5rem !important; }
.max-w-md { max-width: 460px !important; }
.max-w-lg { max-width: 580px !important; }
.max-w-4xl { max-width: 960px !important; }

/* Screens & Transitions */
.desktop-screen {
    display: none;
    min-height: 100vh;
}
.desktop-screen.active {
    display: block;
}

#screen-auth {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    flex-direction: column;
}
#screen-auth.active {
    display: flex;
}

/* ========================================================
   MODERN DESKTOP TOP NAVBAR (PORTAL ÜST MENÜ)
   ======================================================== */
.portal-top-navbar {
    width: 100%;
    height: 68px;
    background: 
        radial-gradient(ellipse 55% 100% at 48% 100%, rgba(37, 99, 235, 0.35) 0%, rgba(29, 78, 216, 0.12) 45%, transparent 75%),
        linear-gradient(150deg, #090e1a 0%, #0d1628 35%, #111d33 70%, #090e1a 100%);
    border: none !important;
    border-bottom: none !important;
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-inner {
    width: 100%;
    padding: 0 5.5rem 0 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.navbar-logo-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-brand-texts {
    display: flex;
    flex-direction: column;
}

.navbar-brand-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.navbar-badge-pill {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.navbar-brand-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Center Links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

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

.navbar-link.active {
    font-weight: 700;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2.5px;
    background: linear-gradient(90deg, #f97316, #3b82f6);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-link i {
    color: #f97316;
    font-size: 0.95rem;
}

/* Right Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 8px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: all 0.2s ease;
}

.navbar-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}

@media (max-width: 1080px) {
    .navbar-links {
        display: none;
    }
}
@media (max-width: 680px) {
    .navbar-inner {
        padding: 0 1rem;
    }
}

/* Store Badge Buttons (Mobil İndir Kartı) */
.store-badge-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.store-badge-btn:hover {
    background: #1e293b;
    border-color: #334155;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.btn-back-to-login {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}
.btn-back-to-login:hover {
    color: #ea580c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========================================================
   1. AUTH SCREEN (Masaüstü Giriş & Kayıt Düzeni)
   ======================================================== */
.auth-desktop-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    flex: 1;
    height: calc(100vh - 68px);
    max-height: calc(100vh - 68px);
    width: 100%;
    overflow: hidden !important;
}

.auth-brand-side {
    background: 
        /* Tam üst sınıra ve üst menü birleşimine yayılan parlak yumuşak mavi ışıma */
        radial-gradient(ellipse 75% 65% at 86% 0%, rgba(37, 99, 235, 0.45) 0%, rgba(29, 78, 216, 0.20) 35%, rgba(30, 58, 138, 0.05) 55%, transparent 75%),
        /* Sağ orta kısımdaki parlak parıltı (Işık sadece sağdan vuruyor) */
        radial-gradient(ellipse 70% 60% at 92% 28%, rgba(37, 99, 235, 0.40) 0%, rgba(29, 78, 216, 0.18) 35%, rgba(30, 58, 138, 0.06) 55%, transparent 75%),
        radial-gradient(ellipse 65% 55% at 95% 60%, rgba(37, 99, 235, 0.24) 0%, rgba(29, 78, 216, 0.08) 38%, transparent 65%),
        /* Sol altta derin karanlık ton */
        radial-gradient(circle at 12% 85%, rgba(30, 41, 59, 0.50) 0%, transparent 60%),
        /* Koyu gece mavisi zemin */
        linear-gradient(150deg, #090e1a 0%, #0d1628 35%, #111d33 70%, #090e1a 100%);
    color: #ffffff;
    padding: 2.25rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: -22%;
    right: -8%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.38) 0%, rgba(29, 78, 216, 0.14) 45%, transparent 70%);
    filter: blur(55px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.auth-brand-side::after {
    content: '';
    position: absolute;
    top: 35%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, rgba(37, 99, 235, 0.06) 50%, transparent 70%);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    transform: translateY(-16px);
}

.brand-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.brand-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.feature-item p {
    color: #94a3b8;
    font-size: 0.88rem;
}

.auth-form-side {
    background-color: var(--bg-body);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: max(1.25rem, calc((100vh - 68px - 530px) / 2)) 2rem 1.25rem 2rem;
    height: 100%;
    max-height: 100%;
    overflow: hidden !important;
}

.auth-card-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-card);
    max-height: calc(100vh - 68px - max(1.25rem, calc((100vh - 68px - 530px) / 2)) - 1.25rem);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}

.auth-card-container::-webkit-scrollbar {
    display: none;
}

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

.auth-logo-box {
    width: 72px;
    height: 72px;
    background: #406ECC;
    border-radius: 18px;
    margin: 0 auto 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(64, 110, 204, 0.35);
}

.auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.auth-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-tabs-row {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-tab-btn.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}

/* ========================================================
   Form Components & Inputs
   ======================================================== */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-icon-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-box i:first-child {
    position: absolute;
    left: 14px;
    color: var(--text-sub);
    font-size: 0.95rem;
}

.input-icon-box input {
    padding-left: 42px;
}

.prefix-box {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 0.88rem;
    color: #94a3b8;
    background: transparent;
    padding: 0;
    border-radius: 0;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

input.tel-padding {
    padding-left: 50px !important;
}

.pwd-toggle {
    position: absolute;
    right: 14px;
    color: var(--text-sub);
    cursor: pointer;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.link-orange {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}
.link-orange:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary-orange {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    transition: all 0.2s ease;
}

.btn-primary-orange:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

/* Auth Giriş Butonu - Görsel 2 Kraliyet Mavisi (#2460E8) */
#btn-owner-login-submit,
#btn-staff-login-submit,
.auth-form #btn-owner-login-submit,
.auth-form #btn-staff-login-submit {
    background: linear-gradient(135deg, #2460E8 0%, #1a52d4 100%) !important;
    box-shadow: 0 4px 14px rgba(36, 96, 232, 0.35) !important;
    color: #ffffff !important;
}

#btn-owner-login-submit:hover,
#btn-staff-login-submit:hover,
.auth-form #btn-owner-login-submit:hover,
.auth-form #btn-staff-login-submit:hover {
    background: linear-gradient(135deg, #1d52ce 0%, #1542b0 100%) !important;
    box-shadow: 0 6px 18px rgba(36, 96, 232, 0.45) !important;
    transform: translateY(-1px);
}

.auth-form .link-orange {
    color: #2460E8;
}

.auth-form .link-orange:hover {
    color: #1a52d4;
}

.auth-form .form-input:focus {
    border-color: #2460E8;
    box-shadow: 0 0 0 3px rgba(36, 96, 232, 0.15);
}

#btn-register-submit:disabled {
    background: #e2e8f0 !important;
    color: #64748b !important;
    box-shadow: none !important;
}

.btn-block {
    width: 100%;
}

.btn-outline-dark {
    background: #ffffff;
    color: var(--navy-dark);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-outline-dark:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-outline-danger {
    background: #ffffff;
    color: var(--danger);
    border: 1.5px solid #fecdd3;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-outline-danger:hover {
    background: var(--danger-light);
}

/* ========================================================
   2. BUSINESS SELECTION SCREEN
   ======================================================== */
.biz-select-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.container-desktop {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo-text-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-nav-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.nav-brand-title {
    font-size: 1.25rem;
    line-height: 1.2;
}

.nav-brand-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.header-actions-group {
    display: flex;
    gap: 12px;
}

.main-biz-select-content {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

.section-title-box {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-box h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-title-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.biz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.biz-card-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.biz-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.biz-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.biz-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1.5px solid var(--primary-border);
}

.biz-card-code {
    background: var(--navy-dark);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.biz-card-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.biz-card-tag {
    display: inline-block;
    background: #f1f5f9;
    color: var(--navy-sub);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.biz-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.biz-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================================
   3. DESKTOP DASHBOARD (Layout, Sidebar & Main)
   ======================================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 1.5rem 1.25rem;
}

.sidebar-header {
    margin-bottom: 1.5rem;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.sidebar-brand-name {
    font-size: 1.15rem;
    line-height: 1.2;
}

.sidebar-badge-web {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.sidebar-biz-card {
    background: var(--navy-dark);
    color: #ffffff;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-biz-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.sidebar-biz-logo-wrapper {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-biz-texts h4 {
    color: #ffffff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.sidebar-biz-texts span {
    color: #94a3b8;
    font-size: 0.75rem;
    display: block;
}

.sidebar-biz-code-badge {
    background: rgba(249, 115, 22, 0.2);
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.4);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
}

/* Nav Menu */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-item i {
    font-size: 1.15rem;
    width: 22px;
    color: #94a3b8;
    transition: color 0.2s;
}

.nav-item:hover {
    background: #f8fafc;
    color: var(--text-main);
}

.nav-item:hover i {
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid var(--primary-border);
}

.nav-item.active i {
    color: var(--primary);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
}
.sidebar-action-btn:hover {
    background: #f8fafc;
    color: var(--text-main);
}
.sidebar-action-btn.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* Dashboard Main */
.dashboard-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navbar */
.dashboard-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left h2 {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-profile-widget:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.avatar-circle {
    width: 34px;
    height: 34px;
    background: var(--navy-dark);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-fullname {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.user-role-tag {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 800;
}

.settings-icon {
    color: var(--text-sub);
    font-size: 0.9rem;
}

/* Dashboard Viewport */
.dashboard-viewport {
    padding: 2rem 2.5rem;
    flex: 1;
}

.dashboard-view {
    display: none;
}
.dashboard-view.active {
    display: block;
}

/* ========================================================
   KPI CARDS & METRICS
   ======================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-card);
}

.kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.bg-orange-soft { background: var(--primary-light); }
.bg-blue-soft { background: var(--info-light); }
.bg-green-soft { background: var(--success-light); }
.bg-red-soft { background: var(--danger-light); }

.kpi-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 4px;
}

/* Content Card */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.card-header {
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

/* Table Toolbar */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pill-filters {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.pill-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.pill-btn.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    background: #ffffff;
}

.date-filter-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.date-quick-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    transition: all 0.2s;
}

.date-quick-btn.active {
    background: var(--navy-dark);
    color: #ffffff;
}

.table-datepicker {
    border: none;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
}

/* ========================================================
   TABLE STYLES
   ======================================================== */
.table-responsive {
    overflow-x: auto;
}

.desktop-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.desktop-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid var(--border-color);
}

.desktop-table td {
    padding: 14px 16px;
    font-size: 0.92rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.desktop-table tr:hover td {
    background: #fafafa;
}

.customer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.customer-name {
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.status-badge.active {
    background: var(--success-light);
    color: var(--success);
}

.status-badge.cancelled {
    background: var(--danger-light);
    color: var(--danger);
}

.status-badge.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.btn-table-action {
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.btn-action-cancel {
    background: var(--danger-light);
    color: var(--danger);
}
.btn-action-cancel:hover {
    background: var(--danger);
    color: #ffffff;
}

.btn-action-delete {
    background: #f1f5f9;
    color: #64748b;
}
.btn-action-delete:hover {
    background: #e2e8f0;
    color: var(--navy-dark);
}

/* ========================================================
   STAFF CARDS & SETTINGS
   ======================================================== */
.view-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

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

.staff-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.staff-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.staff-avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #f1f5f9;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.staff-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.staff-card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.staff-card-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
}

.staff-card-actions {
    display: flex;
    gap: 8px;
}

/* Hours Blocks */
.hours-block {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.bg-blue-tint {
    background: #f0f7ff;
    border-color: #dbeafe;
}

.bg-orange-tint {
    background: #fff9f5;
    border-color: #ffedd5;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.block-title h4 {
    font-size: 1.05rem;
}

.checkbox-row {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.custom-checkbox-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.services-pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.5rem;
}

.service-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.service-pill-item.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-hover);
}

/* ========================================================
   MODALS
   ======================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalScale 0.2s ease-out;
}

@keyframes modalScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-head {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-head-title h3 {
    font-size: 1.25rem;
}

.btn-close-modal {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 1.75rem;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-foot {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Slots Grid inside Quick Booking */
.slots-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
}

.slot-btn {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    padding: 8px 4px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.slot-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.slot-btn.selected {
    background: var(--primary) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

.slot-btn:disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--navy-dark);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 10px;
    animation: toastSlide 0.3s ease-out;
}

.toast-notification.active {
    display: flex;
}

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