:root{
--color-primary: #1A3E60;
--color-secondary: #57C300;
--color-background: #E8ECF2;
--color-text-dark: #333333;
--color-text-light: #f0f0f0;
--color-gray-border: #dcdcdc;
--color-light-bg-card: #ffffff;
--color-sidebar-bg: #2C3E50;
--color-sidebar-item-hover: #4A5F70;


--radius: 10px;
--shadow-sm: 0 6px 18px rgba(28,39,51,0.06);
--gap: 18px;
}


*{box-sizing:border-box}
html,body{height:100%}
body{font-family:Inter, 'Segoe UI', Roboto, Arial; background:var(--color-background); color:var(--color-text-dark); margin:0}


/* layout */
.app-shell{display:flex; min-height:100vh;}
.app-sidebar{width:260px; background:var(--color-sidebar-bg); color:var(--color-text-light); padding:20px 14px; display:flex; flex-direction:column}
.app-main{flex:1; display:flex; flex-direction:column;}
.app-topbar{height:64px; background:var(--color-primary); color:var(--color-text-light); display:flex; align-items:center; padding:0 24px; justify-content:space-between}
.container{max-width:1200px; margin:20px auto; width:calc(100% - 40px)}


/* Sidebar */
.brand{display:flex; align-items:center; gap:12px; margin-bottom:18px}
.brand .logo{width:44px; height:44px; background:#fff; border-radius:6px; display:inline-flex; align-items:center; justify-content:center}
.brand h2{font-size:18px; margin:0; font-weight:600}


.nav{margin-top:12px; display:flex; flex-direction:column; gap:6px}
.nav a{color:var(--color-text-light); text-decoration:none; padding:10px 12px; border-radius:8px; display:flex; align-items:center; gap:10px; font-weight:500}
.nav a:hover{background:var(--color-sidebar-item-hover)}
.nav a.active{background:linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.02)}


/* Topbar */
.topbar-left{display:flex; align-items:center; gap:14px}
.topbar-actions{display:flex; gap:12px; align-items:center}
.topbar-actions .btn{padding:8px 12px; border-radius:8px; background:rgba(255,255,255,0.06); color:var(--color-text-light); border:1px solid rgba(255,255,255,0.03)}


/* Cards */
.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap)}
.card{background:var(--color-light-bg-card); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow-sm); border:1px solid var(--color-gray-border)}
.card h3{margin:0 0 8px 0}
.card .value{font-size:28px; font-weight:700}


/* Forms */
.form{background:var(--color-light-bg-card); padding:18px; border-radius:10px; border:1px solid var(--color-gray-border); box-shadow:var(--shadow-sm)}
.form label{display:block; font-weight:600; margin-bottom:6px}
.input, textarea, select{width:100%; padding:10px 12px; border-radius:8px; border:1px solid var(--color-gray-border); margin-bottom:12px}
.btn{display:inline-block; padding:10px 14px; border-radius:8px; cursor:pointer; border:none}
.btn-primary{background:var(--color-primary); color:var(--color-text-light)}
.btn-success{background:var(--color-secondary); color:#fff}
.btn-danger{background:#E74C3C; color:#fff}


/* Tables */
.table{width:100%; border-collapse:collapse}
.table th, .table td{padding:12px 14px; border-bottom:1px solid #eee}
.table th{background:#fbfcfd; text-align:left; font-weight:700}
.table tr:hover{background:#fafbfc}


/* Responsive */
@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)} .app-sidebar{display:none} .app-shell{flex-direction:column}}
@media(max-width:640px){.grid{grid-template-columns:1fr} .container{padding:12px}}