*{
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    margin:0;
    background:linear-gradient(135deg,#0f2027,#203a43,#2c5364);
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

.card{
    background:#fff;
    width:100%;
    max-width:420px;
    padding:30px;
    border-radius:14px;
    box-shadow:0 20px 40px rgba(0,0,0,0.25);
}

.logo{
    text-align:center;
    margin-bottom:20px;
}

.logo img{
    width:300px;
    max-width:100%;
    margin-bottom:20px;
}

h2{
    text-align:center;
    margin-bottom:20px;
    color:#333;
}

.form-group{
    margin-bottom:15px;
}

.form-group label{
    font-size:14px;
    color:#444;
}

.form-group input{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    margin-top:6px;
    font-size:15px;
}

.btn{
    width:100%;
    background:#ff7a18;
    background:linear-gradient(135deg,#ff7a18,#ffb347);
    border:none;
    padding:12px;
    color:#fff;
    font-size:16px;
    border-radius:10px;
    cursor:pointer;
    margin-top:10px;
}

.btn:hover{
    opacity:0.9;
}

.link{
    text-align:center;
    margin-top:15px;
}

.link a{
    text-decoration:none;
    color:#ff7a18;
    font-weight:600;
}

.msg{
    text-align:center;
    margin-bottom:15px;
    color:red;
}
.success{
    color:green;
}

/* ===== DASHBOARD LAYOUT ===== */

.app{
    display:flex;
    min-height:100vh;
    width:100%;
}

.sidebar{
    width:240px;
    background:#1f2933;
    color:#fff;
    padding:20px;
}

.sidebar img{
    width:160px;
    display:block;
    margin:0 auto 30px;
}

.sidebar a{
    display:block;
    color:#cbd5e1;
    text-decoration:none;
    padding:12px 15px;
    border-radius:8px;
    margin-bottom:8px;
    font-weight:500;
}

.sidebar a:hover,
.sidebar a.active{
    background:#ff7a18;
    color:#fff;
}

.main{
    flex:1;
    background:#f1f5f9;
}

.header{
    background:#fff;
    padding:15px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
}

.header h1{
    font-size:20px;
    margin:0;
}

.logout{
    background:#ef4444;
    color:#fff;
    padding:8px;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
}

/* ===== DASHBOARD CARDS ===== */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    padding:25px;
}

.card-box{
    background:#fff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
}

.card-box h3{
    margin:0;
    font-size:14px;
    color:#64748b;
}

.card-box p{
    font-size:26px;
    margin:8px 0 0;
    font-weight:bold;
}

/* ===== TABLE CSS ===== */

.table-wrapper{
    padding:25px;
}

.table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
}

.table th{
    background:#1f2933;
    color:#fff;
    padding:12px;
    font-size:14px;
    text-align:left;
}

.table td{
    padding:12px;
    border-bottom:1px solid #e5e7eb;
    font-size:14px;
}

.table tr:hover{
    background:#f9fafb;
}

/* ===== STATUS BADGES ===== */

.badge{
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.badge-trial{
    background:#fde68a;
    color:#92400e;
}

.badge-active{
    background:#bbf7d0;
    color:#166534;
}

.badge-expired{
    background:#fecaca;
    color:#991b1b;
}

/* ===== RESPONSIVE ===== */

@media(max-width:768px){
    .sidebar{
        display:none;
    }
    .header h1{
        font-size:16px;
    }
}
/* ===== FORM LAYOUT (INSIDE DASHBOARD) ===== */

.form-wrapper{
    background:#fff;
    padding:25px;
    margin:25px;
    border-radius:14px;
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
}

.form-title{
    font-size:18px;
    margin-bottom:20px;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
}

.form-group select{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    margin-top:6px;
    font-size:15px;
}

.btn-small{
    padding:6px 12px;
    font-size:13px;
    border-radius:6px;
    text-decoration:none;
    color:#fff;
}

.btn-edit{
    background:#2563eb;
}

.btn-delete{
    background:#dc2626;
}
/* ===== POS BILLING ===== */

.pos-container{
    padding:20px;
}

.pos-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
}

.pos-box{
    background:#fff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
}

.pos-box h3{
    margin-top:0;
}

.pos-row{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr auto;
    gap:10px;
    margin-bottom:10px;
}

.pos-row select,
.pos-row input{
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
}

.total-box{
    font-size:20px;
    font-weight:bold;
    margin-top:15px;
}

.btn-add{
    background:#22c55e;
    color:#fff;
    border:none;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
}

.btn-remove{
    background:#ef4444;
    color:#fff;
    border:none;
    padding:8px 10px;
    border-radius:6px;
    cursor:pointer;
}
/* ===== INVOICE ===== */
.invoice-box{
    max-width:800px;
    margin:auto;
    background:#fff;
    padding:20px;
    font-size:14px;
}

.invoice-box table{
    width:100%;
    border-collapse:collapse;
}

.invoice-box th, .invoice-box td{
    border:1px solid #ccc;
    padding:8px;
    text-align:left;
}

@media print{
    button{display:none;}
}
/* ===== Premium Sidebar ===== */

.sidebar{
    width:240px;
    min-height:100vh;
    background:linear-gradient(180deg,#0f2027,#203a43,#2c5364);
    color:#fff;
    position:fixed;
    left:0;
    top:0;
    overflow-y:auto;
    box-shadow:2px 0 10px rgba(0,0,0,0.3);
}

.brand{
    text-align:center;
    padding:25px 15px;
    border-bottom:1px solid rgba(255,255,255,0.15);
}

.brand img{
    width:180px;
    margin-bottom:12px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

.brand img:hover{
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0,255,255,1));
}

.brand h3{
    margin:0;
    font-size:20px;
    letter-spacing:1px;
}

.brand p{
    font-size:12px;
    opacity:0.7;
    margin-top:3px;
}

.nav{
    list-style:none;
    padding:0;
    margin:0;
}

.nav li{
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.nav li a{
    display:block;
    padding:14px 20px;
    color:#fff;
    text-decoration:none;
    font-size:15px;
    transition:0.3s;
}

.nav li a:hover{
    background:rgba(255,255,255,0.1);
    padding-left:26px;
}

.nav li a.active{
    background:#00c6ff;
    color:#000;
    font-weight:600;
}

.nav li.logout a{
    background:#c0392b;
    margin:15px;
    border-radius:6px;
    text-align:center;
}

.nav li.logout a:hover{
    background:#e74c3c;
}
.main{
    margin-left:240px;
    padding:20px;
}
/* ================= FORM UI SYSTEM ================= */

.form-group{
    margin-bottom:15px;
}

.form-group label{
    display:block;
    font-weight:600;
    margin-bottom:5px;
    color:#333;
    font-size:14px;
}

/* Input, Select, Textarea */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
textarea{
    width:100%;
    padding:10px 12px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
    outline:none;
    transition:0.3s;
    background:#fff;
}

/* Focus Effect */
input:focus,
select:focus,
textarea:focus{
    border-color:#007BFF;
    box-shadow:0 0 0 2px rgba(0,123,255,0.15);
}

/* Placeholder */
::placeholder{
    color:#999;
}

/* Buttons */
button,
.btn{
    background:#007BFF;
    border:none;
    padding:10px 16px;
    color:#fff;
    font-size:14px;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}

button:hover,
.btn:hover{
    background:#0056b3;
}

/* Small Buttons */
.btn-small{
    padding:6px 12px;
    font-size:12px;
    border-radius:5px;
}

.btn-edit{
    background:#28a745;
}
.btn-edit:hover{
    background:#1e7e34;
}

.btn-delete{
    background:#dc3545;
}
.btn-delete:hover{
    background:#bd2130;
}

/* Inline Form */
.form-inline{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.form-inline input,
.form-inline select{
    flex:1;
    min-width:180px;
}

/* Card Style */
.card{
    background:#fff;
    padding:15px;
    border-radius:8px;
    box-shadow:0 0 8px rgba(0,0,0,0.1);
    margin-bottom:20px;
}

/* Table Wrapper */
.table-wrapper{
    background:#fff;
    padding:15px;
    border-radius:8px;
    box-shadow:0 0 8px rgba(0,0,0,0.1);
}
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
/* ===== FIX FOR DASHBOARD SIDEBAR SCROLL ===== */

/* Dashboard pages par body ko override */
.app body,
body.dashboard,
.app {
    align-items: stretch;
    justify-content: flex-start;
}

/* Sidebar full height + scroll fix (safety) */
.sidebar {
    overflow-y: auto;
    max-height: 100vh;
}

/* Main content ko independently scroll hone do */
.main {
    overflow-y: auto;
    max-height: 100vh;
}
/* ===== SIDEBAR GROUP MENU ===== */
.nav-group > a{
    font-weight:600;
    cursor:pointer;
}

.submenu{
    display:none;
    padding-left:15px;
}

.submenu li a{
    font-size:14px;
    padding:10px 15px;
    color:#e5e7eb;
}

.submenu li a:hover{
    background:rgba(255,255,255,0.15);
}
/* ===== SIDEBAR BRAND UPGRADE ===== */
.brand{
    text-align:center;
    padding:22px 15px;
    border-bottom:1px solid rgba(255,255,255,0.15);
}

.brand img{
    width:160px;
    margin-bottom:10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.brand h3{
    margin:0;
    font-size:20px;
    letter-spacing:1px;
}

.brand .divider{
    width:240px;
    height:2px;
    margin:10px auto;
    background:linear-gradient(90deg,transparent,#00c6ff,transparent);
}

.brand .shop-name{
    font-size:14px;
    font-weight:600;
    color:#e0f2fe;
    margin:0;
}
