*{box-sizing:border-box}

body{
margin:0;
font-family:Arial,sans-serif;
background:#07111f;
color:white;
}

.app{
display:flex;
min-height:100vh;
}

.sidebar{
width:280px;
background:#06101f;
border-right:1px solid #17304f;
padding:24px;
}

.logo{
display:flex;
gap:14px;
align-items:center;
margin-bottom:35px;
}

.logo-icon{
width:48px;
height:48px;
border:2px solid #2492ff;
border-radius:12px;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
color:#2492ff;
}

.logo h2{
margin:0;
font-size:28px;
}

.logo span{
color:#2492ff;
}

.logo p{
margin:3px 0 0;
font-size:12px;
letter-spacing:2px;
text-transform:uppercase;
color:#9fb0c8;
}

nav a{
display:block;
padding:15px 18px;
margin-bottom:10px;
border-radius:12px;
color:white;
text-decoration:none;
font-weight:bold;
}

nav a.active,
nav a:hover{
background:linear-gradient(135deg,#1d6fff,#2492ff);
}

.logout{
margin-top:70px;
color:#ff6262!important;
}

.main{
flex:1;
background:radial-gradient(circle at top left,rgba(36,146,255,.25),transparent 35%),#081426;
}

.header{
height:88px;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 32px;
border-bottom:1px solid #17304f;
}

.header input{
width:440px;
background:#07111f;
border:1px solid #263f63;
color:white;
padding:15px;
border-radius:10px;
}

.user{
text-align:right;
}

.user small{
display:block;
color:#9fb0c8;
}

.page-title{
display:flex;
align-items:center;
justify-content:space-between;
padding:35px 32px 20px;
}

.page-title h1{
font-size:34px;
margin:0;
}

.page-title p{
color:#9fb0c8;
margin-top:6px;
}

.back-btn{
background:#0e1d33;
border:1px solid #263f63;
padding:13px 22px;
border-radius:10px;
color:white;
text-decoration:none;
}

.product-layout{
display:grid;
grid-template-columns:1fr 340px;
gap:22px;
padding:10px 32px 40px;
}

.panel{
background:rgba(14,29,51,.95);
border:1px solid #263f63;
border-radius:16px;
padding:25px;
box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.form-panel{
display:block;
}

.upload-box{
margin-bottom:20px;
}

label{
display:block;
font-weight:bold;
margin-bottom:8px;
}

.drop-area{
border:1px dashed #48617f;
border-radius:14px;
padding:34px;
text-align:center;
background:#0a1628;
}

.upload-icon{
font-size:42px;
color:#2492ff;
}

.drop-area p{
color:#b7c4d8;
}

input,
select,
textarea{
width:100%;
padding:15px;
border-radius:10px;
background:#07111f;
border:1px solid #263f63;
color:white;
font-size:15px;
outline:none;
}

input:focus,
select:focus,
textarea:focus{
border-color:#2492ff;
}

.grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:18px;
margin-top:20px;
}

textarea{
min-height:90px;
}

.actions{
display:flex;
justify-content:flex-end;
gap:14px;
margin-top:24px;
}

button,
.cancel{
padding:15px 28px;
border-radius:10px;
font-weight:bold;
font-size:15px;
text-decoration:none;
border:0;
}

button{
background:linear-gradient(135deg,#1d6fff,#2492ff);
color:white;
cursor:pointer;
}

.cancel{
background:#0a1628;
border:1px solid #263f63;
color:white;
}

.preview-image{
height:215px;
border:1px solid #263f63;
border-radius:14px;
background:#0a1628;
display:flex;
align-items:center;
justify-content:center;
font-size:70px;
color:#334a68;
margin-bottom:25px;
}

.preview-row{
display:flex;
justify-content:space-between;
padding:11px 0;
}

.green b{color:#72ff7b}
.red b{color:#ff6b6b}

@media(max-width:900px){
.app{display:block}
.sidebar{width:100%}
.product-layout{grid-template-columns:1fr}
.grid{grid-template-columns:1fr}
.header{height:auto;display:block;padding:20px}
.header input{width:100%}
.user{text-align:left;margin-top:15px}
}
.menu-title {
    color: #8fa3bd;
    font-size: 13px;
    font-weight: bold;
    margin: 28px 0 10px;
}

.product-view {
    padding: 10px 32px 40px;
}

.product-card {
    max-width: 900px;
    margin-bottom: 25px;
}

.product-top {
    display: flex;
    gap: 35px;
    align-items: center;
    margin-bottom: 35px;
}

.product-img {
    width: 130px;
    height: 130px;
    background: #0a1628;
    border: 1px solid #263f63;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: #1d6fff;
    overflow: hidden;
}

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

.product-info p {
    font-size: 18px;
    margin: 14px 0;
}

.product-info span {
    margin-left: 10px;
}

.blue {
    color: #38a4ff;
}

.green {
    color: #72ff7b;
}

.stock-box {
    background: rgba(8, 20, 38, .75);
    border: 1px solid #263f63;
    border-radius: 16px;
    padding: 25px;
}

.stock-box h2 {
    font-size: 30px;
    margin-top: 0;
}

.stock-box form {
    display: grid;
    gap: 15px;
}

footer {
    border-top: 1px solid #17304f;
    color: #8fa3bd;
    padding: 25px 32px;
}

footer span {
    float: right;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid #263f63;
    text-align: left;
}

th {
    color: #8fa3bd;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 10px 32px 25px;
}

.stat-card {
    background: rgba(14, 29, 51, .95);
    border: 1px solid #263f63;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.stat-card p {
    margin: 0 0 12px;
    color: #9fb0c8;
    font-weight: bold;
}

.stat-card h2 {
    margin: 0;
    font-size: 28px;
}

.red-text {
    color: #ff6b6b;
}

.product-table-panel {
    margin: 0 32px 40px;
}

.table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.table-head h2 {
    margin: 0;
}

.table-head a {
    background: linear-gradient(135deg,#1d6fff,#2492ff);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

.mini-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #0a1628;
    border: 1px solid #263f63;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2492ff;
    overflow: hidden;
}

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

.badge {
    background: rgba(36,146,255,.15);
    color: #38a4ff;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: bold;
}

.badge.danger {
    background: rgba(255,107,107,.15);
    color: #ff6b6b;
}

.open-btn {
    color: #72eaff;
    font-weight: bold;
    text-decoration: none;
}

@media(max-width:1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:700px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .product-table-panel {
        overflow-x: auto;
    }
}
.supplier-card {
    display: block;
    background: rgba(14, 29, 51, .95);
    border: 1px solid #263f63;
    border-radius: 16px;
    padding: 25px;
    color: white;
    text-decoration: none;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.supplier-card:hover {
    border-color: #2492ff;
    transform: translateY(-2px);
}

.supplier-card p {
    margin: 0 0 10px;
    color: #9fb0c8;
    font-weight: bold;
}

.supplier-card h2 {
    margin: 0 0 15px;
}

.supplier-card span {
    display: block;
    color: #38a4ff;
    font-weight: bold;
    margin-bottom: 8px;
}

.supplier-card strong {
    color: #72ff7b;
}