:root {
  --base-font: clamp(16px, 2.2vw, 20px);
  --accent: #2b6cb0;
  --bg: #f7fafc;
  --card: #ffffff;
  --text: #1a202c;
  --danger: #ff7597;
  --success: #31c48d;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: system-ui, Arial, sans-serif; font-size: var(--base-font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem; background: var(--card); border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 800; }
.main-nav a, .dropdown button { margin-right: .6rem; padding: .3rem .6rem; }
.main-nav .logout { color: #e11d48; }

.container { max-width: 1200px; margin: 1rem auto; padding: 0 1rem; }
.card { background: var(--card); border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.card h2 { margin-top: 0; }

input[type=text], input[type=password], input[type=number], input[type=month], input[type=tel], textarea, select {
  width: 100%; padding: .6rem; border: 1px solid #cbd5e0; border-radius: 8px; background: #fff; font-size: 1em;
}
label { display: block; margin-top: .6rem; font-weight: 600; }
button, .btn { display: inline-block; background: var(--accent); color: white; padding: .5rem .9rem; border: none; border-radius: 8px; cursor: pointer; }
button:hover, .btn:hover { opacity: .92; }
.btn-secondary { background: #4a5568; }
.btn-danger { background: #e11d48; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #e2e8f0; padding: .5rem; text-align: left; }
.table th { background: #f1f5f9; }
.tr-roz { background: #ffe4ec; } /* rand cu restanta */
.total-row { font-weight: 700; }

.flex { display: flex; gap: 1rem; flex-wrap: wrap; }
.col { flex: 1 1 300px; }

.footer { text-align: center; color: #718096; padding: 2rem 1rem; }

/* dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #fff; min-width: 200px; border: 1px solid #e2e8f0; border-radius: 8px; padding: .5rem; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: .3rem .4rem; margin: .2rem 0; }
