:root {
  --gold:#ffac33;
  --orange:#ff8c00;
  --dark:#0b0f14;
  --glass:rgba(255,255,255,0.08);
  --border:rgba(255,255,255,0.12);
}

* {
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
}

body {
  margin:0;
  background:var(--dark);
  color:white;
  overflow-x:hidden;
  overflow-y:auto;
}

/* CANVAS */
#canvas-3d {
  position:fixed;
  inset:0;
  z-index:1;
}

/* INTRO + LOGIN */
.app-layer,
#intro-wrapper {
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10;
}

.hidden { display:none !important; }

#intro-wrapper:not(.hidden) ~ .dev-watermark,
#login-section:not(.hidden) ~ .dev-watermark{
  display:none;
}

/* INTRO */
.main-hero-logo {
  width:320px;
  animation:breathe 3s infinite;
}

@keyframes breathe {
  0%,100% { transform:scale(1); opacity:.8 }
  50% { transform:scale(1.05); opacity:1 }
}

.action-text {
  margin-top:20px;
  letter-spacing:4px;
  font-size:.7rem;
  color:var(--gold);
}

/* LOGIN */
.login-card {
  background:rgba(10,15,25,.7);
  backdrop-filter:blur(40px);
  border:1px solid var(--border);
  padding:50px;
  border-radius:30px;
  width:420px;
}

.custom-input {
  position:relative;
  border:1px solid var(--border);
  border-radius:12px;
}

.custom-input i {
  position:absolute;
  left:15px;
  top:12px;
  color:var(--gold);
}

.custom-input input {
  width:100%;
  padding:12px 12px 12px 45px;
  background:none;
  border:none;
  color:white;
  outline:none;
}

.premium-btn {
  width:100%;
  padding:16px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#ff8c00,#ffb300);
  font-weight:900;
}

/* DASHBOARD */
     :root {
            --primary-orange: #FF8C00;
            --deep-brown: #2D1B15;
            --glass-white: rgba(255, 255, 255, 0.12);
            --text-main: #FFFFFF;
            --text-muted: #D1D1D1;
            --accent-blue: #00A3FF;
            --sidebar-width: 250px;
        }
        
/* KEEP YOUR EXISTING CSS SAME */

/* ADD THESE LINES AT END */
#dashboard-section{
  min-height:100vh;
  overflow-y:auto;
  position:relative;
  z-index:5;
}

.main-content{
  min-height:100vh;
  padding-bottom:100px;
}

.glass-card{
  overflow:visible;
}

.bg-orb{
  z-index:-2;
  display:none;
}

        body {
            font-family: 'Inter', sans-serif;
            background: #1a100d;
            background-image: 
                radial-gradient(at 0% 0%, rgba(245, 124, 0, 0.15) 0, transparent 50%),
                radial-gradient(at 100% 100%, rgba(0, 163, 255, 0.1) 0, transparent 50%),
                url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
            color: var(--text-main);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Responsive Sidebar */
        #sidebar {
            width: var(--sidebar-width);
            background: rgba(45, 27, 21, 0.95);
            backdrop-filter: blur(30px);
            border-right: 1px solid rgba(255,255,255,0.1);
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            transition: 0.4s;
            z-index: 1050;
        }

        /* Main Content Adjustment */
        .main-content { 
            margin-left: var(--sidebar-width); 
            padding: 20px; 
            transition: 0.4s;
        }

        /* Mobile Adjustments */
        @media (max-width: 1199px) {
            #sidebar { left: calc(-1 * var(--sidebar-width)); }
            #sidebar.active { left: 0; }
            .main-content { margin-left: 0; }
            .sidebar-overlay {
                display: none;
                position: fixed;
                width: 100vw;
                height: 100vh;
                background: rgba(0,0,0,0.5);
                z-index: 1040;
            }
            .sidebar-overlay.show { display: block; }
        }

        .logo-container { padding: 40px 20px; text-align: center; }
        .sidebar-logo {
            width: 200px;
            /*height: 80px;*/
            border-radius: 20px;
            /*background: #fff;*/
            padding: 10px; object-fit: contain;
            /*box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px rgba(245, 124, 0, 0.3);*/
        }

        .nav-item { margin: 8px 15px; }
        .nav-link {
            color: var(--text-muted); border-radius: 12px;
            padding: 12px 20px; font-weight: 500; transition: 0.3s;
            display: flex; align-items: center;
        }
        .nav-link:hover, .nav-link.active {
            background: rgba(255, 140, 0, 0.2); color: var(--primary-orange);
        }

        /* Top Bar */
        .top-bar {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(15px);
            border-radius: 20px;
            padding: 15px 25px;
            margin-bottom: 30px;
            border: 1px solid rgba(255,255,255,0.05);
            display: flex; justify-content: space-between; align-items: center;
        }

        .brand-title { font-weight: 800; font-size: 1.5rem; margin: 0; }
        .brand-tagline { color: var(--primary-orange); text-transform: uppercase; font-size: 0.65rem; letter-spacing: 1px; font-weight: 700; margin: 0; }

        /* Mobile Menu Toggle */
        .menu-toggle {
            display: none;
            background: var(--glass-white);
            border: 1px solid rgba(255,255,255,0.1);
            color: white;
            padding: 10px 15px;
            border-radius: 12px;
            margin-right: 15px;
        }
        @media (max-width: 1199px) { .menu-toggle { display: block; } }

        /* Glass Cards */
        .glass-card {
            background: var(--glass-white);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 25px;
            height: 100%;
            transition: 0.4s;
        }
        .glass-card:hover { transform: translateY(-5px); border-color: var(--primary-orange); }
        .stat-label { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; }
        .stat-value { font-size: 1.8rem; font-weight: 800; margin: 0; }

        /* Tables */
        .modern-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; min-width: 600px; }
        .modern-table tbody tr { background: rgba(255,255,255,0.04); border-radius: 15px; }
        .modern-table td, .modern-table th { padding: 15px 20px; border: none; vertical-align: middle; }
        .status-pill { padding: 6px 14px; border-radius: 8px; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; }
        .bg-ongoing { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
        .bg-completed { background: rgba(255, 140, 0, 0.15); color: #ff8c00; }
        .bg-hold { background: rgba(255, 204, 0, 0.16); color: #ffcc00; }
        .bg-new { background: rgba(0, 163, 255, 0.15); color: #00a3ff; }

        /* Buttons */
        .btn-bold {
            padding: 12px 24px; border-radius: 12px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
            min-height: 44px; /* Touch target */
        }
        .btn-orange-3d { background: linear-gradient(135deg, #FF8C00 0%, #E65100 100%); color: white; border: none; }
        .btn-green-3d { background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%); color: white; border: none; }
        .dashboard-footer-actions{
            display:flex;
            justify-content:center;
            gap:12px;
            flex-wrap:wrap;
        }
        .dashboard-footer-actions .btn{
            min-width:190px;
            font-weight:700;
            border-radius:12px;
        }
        .dashboard-footer-actions .btn-outline-light{
            border-color:rgba(255,255,255,.42);
            color:#e8edf3;
            background:rgba(255,255,255,.03);
        }
        .dashboard-footer-actions .btn-outline-light:hover{
            background:rgba(255,255,255,.12);
            color:#fff;
        }
        .dashboard-new-client-btn{
            display:inline-flex;
            align-items:center;
            gap:8px;
            background:linear-gradient(135deg,#ff9f1c,#ff7a00);
            color:#000;
            text-decoration:none;
            padding:12px 20px;
            border-radius:14px;
            font-weight:700;
            border:1px solid rgba(255,255,255,.18);
            box-shadow:0 8px 16px rgba(255,122,0,.28);
        }
        .dashboard-new-client-btn:hover{
            color:#000;
            transform:translateY(-1px);
            box-shadow:0 12px 20px rgba(255,122,0,.35);
        }

        .profile-img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--primary-orange); }
        .top-bar a.js-logout{
            color: var(--primary-orange);
            text-decoration: none;
            font-weight: 700;
        }
        .top-bar a.js-logout:hover{ text-decoration: underline; }
        .logout-btn{
            display:inline-block;
            margin-top:6px;
            padding:6px 12px;
            border-radius:999px;
            font-size:12px;
            font-weight:700;
            color:#1a100d !important;
            text-decoration:none !important;
            background:linear-gradient(135deg,#ff9f1c,#ff7a00);
            border:1px solid rgba(255,255,255,0.2);
            box-shadow:0 6px 14px rgba(255,122,0,0.25);
        }
        .logout-btn:hover{
            transform:translateY(-1px);
            box-shadow:0 10px 18px rgba(255,122,0,0.35);
        }

        /* Background Orbs */
        .bg-orb { position: fixed; width: 300px; height: 300px; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.3; }
        .orb-1 { background: #F57C00; top: -50px; right: -50px; }
        .orb-2 { background: #3E2723; bottom: -50px; left: -50px; }

        @media (max-width: 576px) {
            .brand-title { font-size: 1.2rem; }
            .top-bar { padding: 10px 15px; }
            .action-stack { flex-direction: column; width: 100%; }
            .action-stack button { width: 100%; }
            .dashboard-footer-actions .btn{
              width:100%;
            }
        }
        
        /* LOGIN LOGO PRECISE ALIGNMENT */
.login-card {
  position: relative;
  text-align: center;
}

.login-logo {
  width: 180px;              /* perfect visual balance */
  max-width: 100%;
  margin: 0 auto 20px auto;  /* center + spacing */
  display: block;

  /* premium look */
  filter: drop-shadow(0 10px 25px rgba(255, 140, 0, 0.25));
}

/* Responsive adjustment */
@media (max-width: 576px) {
  .login-logo {
    width: 150px;
    margin-bottom: 16px;
  }
}
.sidebar-logo {
  display: block;
  margin: 0 auto;
  width: 180px;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
  position: relative;
}
/* ===== MOBILE LOGIN FIX ===== */
@media (max-width: 576px) {

  #login-section.app-layer {
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .login-card {
    margin: auto;
    width: 100%;
    max-width: 360px;
    padding: 26px 20px;
  }

}
@media (max-width: 576px) {
  body {
    overscroll-behavior: contain;
  }
}

/* =========================
   DASHBOARD THEME MATCH
========================= */
#dashboard-section{
  position:relative;
  min-height:100vh;
  background:
    radial-gradient(circle at 78% 90%, rgba(11,44,66,.55), transparent 32%),
    radial-gradient(circle at 8% 8%, rgba(255,140,0,.14), transparent 30%),
    #070707;
}

#dashboard-section::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(rgba(255,159,28,.18) 1px, transparent 1px);
  background-size:8px 8px;
  opacity:.26;
  pointer-events:none;
}

#dashboard-section #sidebar{
  background:linear-gradient(180deg,#3b1c10 0%, #1f0e08 52%, #140904 100%);
  border-right:1px solid rgba(255,183,99,.16);
}

#dashboard-section .main-content{
  position:relative;
  z-index:1;
  padding:24px;
}

#dashboard-section .top-bar,
#dashboard-section .glass-card{
  background:linear-gradient(180deg,rgba(35,20,12,.78),rgba(9,9,9,.86));
  border:1px solid rgba(255,183,99,.18);
  box-shadow:0 14px 30px rgba(0,0,0,.26);
}

#dashboard-section .top-bar{
  padding:14px 20px;
  margin-bottom:22px;
}

#dashboard-section .nav-link{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:500;
  font-size:16px;
  color:#f1f1f1;
  border-radius:14px;
  padding:12px 18px;
}

#dashboard-section .nav-link i{
  font-size:18px;
  width:20px;
  text-align:center;
  color:#f1f1f1;
}

#dashboard-section .row.g-3.g-md-4{
  --bs-gutter-x:1.05rem;
  --bs-gutter-y:1.05rem;
}

#dashboard-section .glass-card{
  padding:18px 20px;
  border-radius:20px;
}

#dashboard-section .stat-label{
  font-size:.86rem;
  font-weight:600;
  letter-spacing:.02em;
}

#dashboard-section .stat-value{
  font-size:2.25rem;
  line-height:1.05;
  font-weight:700;
}

#dashboard-section .brand-title{
  font-size:2.15rem;
  font-weight:700;
  letter-spacing:.3px;
}

#dashboard-section .brand-tagline{
  font-size:.74rem;
  font-weight:700;
  letter-spacing:1.2px;
}

#dashboard-section .modern-table th{
  font-weight:700;
}

#dashboard-section .modern-table td{
  font-weight:500;
}

#dashboard-section .dashboard-new-client-btn{
  font-weight:700;
}

#dashboard-section .modern-table td,
#dashboard-section .modern-table th{
  padding:12px 16px;
}

#dashboard-section .nav-link:hover,
#dashboard-section .nav-link.active{
  background:linear-gradient(135deg,#ff9f1c,#ff8a00);
  color:#0f0f0f;
}

#dashboard-section .nav-link:hover i,
#dashboard-section .nav-link.active i{
  color:#0f0f0f;
}

#dashboard-section .nav-item{
  margin:8px 15px;
}

#dashboard-section .modern-table tbody tr{
  background:rgba(255,255,255,.06);
}

#dashboard-section .modern-table tbody tr:hover{
  background:rgba(255,255,255,.09);
}

#dashboard-section .btn-outline-light{
  border-color:rgba(255,255,255,.35);
}

@media (max-width: 1199px){
  #dashboard-section .main-content{
    padding:16px 14px 68px;
  }

  #dashboard-section .brand-title{
    font-size:1.85rem;
  }

  #dashboard-section .stat-value{
    font-size:1.95rem;
  }
}

@media (max-width: 1024px){
  #dashboard-section .modern-table{
    min-width:720px;
  }
}

@media (max-width: 768px){
  #dashboard-section .top-bar{
    padding:12px 14px;
  }

  #dashboard-section .brand-title{
    font-size:1.55rem;
  }

  #dashboard-section .row.g-3.g-md-4 .glass-card{
    min-height:108px;
  }

  #dashboard-section .dashboard-new-client-btn{
    width:100%;
    justify-content:center;
  }
}

@media (max-width: 390px){
  #dashboard-section .main-content{
    padding:12px 10px 62px;
  }

  #dashboard-section .brand-title{
    font-size:1.4rem;
  }

  #dashboard-section .stat-value{
    font-size:1.7rem;
  }
}
