:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --surface:#ffffff;
  --surface-muted:#f8fafc;
  --btn:#f8fafc;
  --btn-active:#0f172a;
  --btn-active-text:#ffffff;
  --link:#2563eb;
  --accent:#00bfa5;
  --accent-soft:rgba(0, 191, 165, 0.12);
  --hover-grey:#f1f5f9;
  --active-grey:#e2e8f0;
  --shadow:0 24px 60px rgba(15, 23, 42, 0.08);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:var(--bg);
  color:var(--text);
}

.page{
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 24px;
}

.top-left{
  min-width:260px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}


.year-title{
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0;
  line-height: 1;
  text-align:center;
  flex:1;
}

.year-switch{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  min-width: 260px;
}

.year-btn{
  border:1px solid var(--border);
  background: var(--btn);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  user-select:none;
}

.year-btn:active{ transform: translateY(1px); }

.year-btn:hover{
  background: var(--hover-grey);
  border-color: #cbd5e1;
}

.year-btn.active{
  background: var(--btn-active);
  color: var(--btn-active-text);
  border-color: var(--btn-active);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

@media (max-width: 1200px){
  .top{ flex-wrap:wrap; }
  .top-left{ order:2; width:100%; justify-content:center; min-width:0; }
  .year-title{ order:1; width:100%; }
  .year-switch{ order:3; width:100%; justify-content:center; min-width:0; }
}


.divider{
  margin: 38px 0 30px;
  border-top: 1px solid var(--border);
}

.dropdown{
  position: relative;
  display: inline-block;
}

.dropdown-panel{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 8px;
  z-index: 2000;
  box-shadow: var(--shadow);
}

.dropdown-panel[hidden]{
  display: none !important;
}


.dd-item{
  display: block;
  width: 100%;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--btn);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 600;
}

.dd-item:hover{
  background: var(--hover-grey);
}

.dd-item:active{
  background: var(--active-grey);
}

@media (min-width: 1200px){
  #menuDropdown{
    position: fixed;
    top: 22px;
    left: 20px;
    z-index: 5000;
  }

  /* ca să nu se ducă sub buton meniul */
  #menuDropdown .dropdown-panel{
    left: 0;
    top: calc(100% + 8px);
  }

  /* opțional: să nu îți “tragă” layout-ul din top */
  .top-left{
    min-width: 0;
  }
}

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

.form-grid{
  display:grid;
  gap:12px;
}

.field{
  display:grid;
  gap:6px;
}

.field span{
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.field input{
  width:100%;
  border:1px solid var(--border);
  padding:10px 12px;
  font: inherit;
}

.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  user-select:none;
}

.check input{
  margin-top: 3px;
}

.form-msg{
  border:1px solid var(--border);
  padding:10px 12px;
}
