/* --- GLOBAL STYLES --- */
:root { --dark: #121212; --card: #1e1e1e; --accent: #f39c12; --success: #27ae60; --info: #3498db; --text: #ffffff; --text-muted: #aaaaaa; --border: #333333; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: var(--dark); color: var(--text); margin: 0; display: flex; height: 100vh; overflow: hidden; }

/* --- LAYOUT --- */
.app-container { display: flex; width: 100%; height: 100%; }
.page-content { display: none; flex: 1; height: 100%; overflow: hidden; }
.page-content.active { display: flex; }
.sidebar { width: 420px; background: var(--card); padding: 20px; border-right: 2px solid var(--border); overflow-y: auto; box-sizing: border-box; }
.main-panel { flex-grow: 1; padding: 30px; overflow-y: auto; background: #181818; position: relative; }
/* --- WATERMARK LOGO --- */
.main-panel::before {
    content: ""; 
    position: fixed; 
    top: 50%; 
    left: calc(50vw + 250px); /* Qendra ekzakte vetëm për fushën e punës */
    transform: translate(-50%, -50%);
    width: 40vw; 
    height: 40vw; 
    background-image: url('logo.png'); 
    background-size: contain;
    background-repeat: no-repeat; 
    background-position: center; 
    opacity: 0.04; 
    pointer-events: none; 
    z-index: 10;
}
.main-panel > * { 
    position: relative; 
    z-index: 1; 
}

/* --- NAVIGATION --- */
.main-nav { width: 80px; flex-shrink: 0; background: #0a0a0a; display: flex; flex-direction: column; align-items: center; padding-top: 20px; border-right: 1px solid var(--border); z-index: 10; }
.nav-item { width: 60px; height: 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--text-muted); cursor: pointer; border-radius: 8px; margin-bottom: 10px; transition: 0.3s; font-size: 10px; text-transform: uppercase; font-weight: bold; text-align: center; }
.nav-item:hover { background: #1a1a1a; color: white; }
.nav-item.active { background: var(--accent); color: black; }
.nav-icon { font-size: 20px; margin-bottom: 5px; }

/* --- TYPOGRAPHY & FORMS --- */
h1 { font-size: 18px; color: var(--accent); margin: 0; text-transform: uppercase; letter-spacing: 1px; }
h2 { color: var(--text); font-size: 15px; text-transform: uppercase; margin: 15px 0 10px 0; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
h3 { color: var(--accent); font-size: 11px; text-transform: uppercase; margin: 10px 0 5px 0; }
label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; font-weight: bold; margin-bottom: 3px; white-space: nowrap; }
input, select, textarea { padding: 8px; background: #121212; border: 1px solid var(--border); color: white; border-radius: 4px; font-size: 13px; width: 100%; box-sizing: border-box; }
input:focus { border-color: var(--accent); outline: none; }
.input-group { margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: nowrap; align-items: flex-end; }
.stack { display: flex; flex-direction: column; }

/* --- BUTTONS --- */
.btn { background: var(--accent); color: #000; border: none; padding: 12px; width: 100%; font-weight: bold; cursor: pointer; border-radius: 4px; text-transform: uppercase; transition: 0.2s; }
.btn-add { background: var(--info); color: white; margin-bottom: 20px; }
.btn-small { padding: 6px 8px; background: #333; color: #ccc; border: 1px solid #444; font-size: 10px; cursor: pointer; border-radius: 4px; font-weight: bold; }
.btn-danger { color: #e74c3c; background: transparent; border: none; font-weight: bold; cursor: pointer; padding: 5px; }

/* --- CARDS & TABLES --- */
.product-card { background: #252525; border-radius: 8px; border: 1px solid var(--border); padding: 15px; margin-bottom: 20px; border-left: 5px solid var(--info); }
.product-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-bottom: 1px solid #333; padding-bottom: 8px; }
.dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 25px; }
.stat-card { background: var(--card); padding: 12px; border-radius: 6px; border-left: 4px solid var(--accent); text-align: center; }
.stat-val { font-size: 18px; font-weight: bold; display: block; color: var(--text); }
.stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 6px; overflow: hidden; font-size: 12px; }
th { text-align: left; background: #222; color: var(--accent); padding: 10px; text-transform: uppercase; font-size: 10px; }
td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.row-cat { background: #2a2a2a; color: var(--accent); font-weight: bold; text-transform: uppercase; font-size: 10px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }

/* --- CALCULATOR STYLES --- */
.calc-btn { font-size: 14px; padding: 10px 0; background: transparent; border: 1px solid #444; color: white; border-radius: 4px; cursor: pointer; font-weight: bold; }
.calc-btn:hover { background: #333; }
.calc-btn.op { background: var(--info); border: none; }
.calc-btn.action { background: #e74c3c; border: none; }
.calc-btn.equals { background: var(--success); border: none; color: white; }
.calc-btn.pi { background: #555; color: var(--accent); border: none; }
.calc-btn.gray { background: #555; border: none; }

@media (max-width: 800px) {
    .app-container { flex-direction: column; }
    .main-nav { width: 100%; height: 60px; flex-direction: row; justify-content: space-around; padding-top: 0; border-right: none; border-bottom: 1px solid var(--border); }
    .nav-item { width: auto; height: 100%; margin-bottom: 0; padding: 0 10px; }
    .page-content { flex-direction: column; height: auto; overflow-y: auto; }
    .sidebar { width: 100%; height: auto; border-right: none; }
    .main-panel { padding: 15px; }
    .dashboard { grid-template-columns: 1fr 1fr; }
}
