/* ============================================================
   style.css  –  IA Comunități Inteligente
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --albastru:   #1a4e8f;
  --negru:      #1a1a1a;
  --gri-linie:  #c0c8d4;
  --gri-bg:     #f5f6f8;
  --nav-w:      200px;
  --header-h:   160px; /* dimeniune verticala */
  --footer-h:   52px;
  --max-w:      1100px;
}

html, body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--negru);
  background: #fff;
}

/* ── HEADER ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 2px solid var(--albastru);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: var(--max-w);
  max-width: 90vw;
}

.header-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 600px; /* spatiere orizontala */
  flex-wrap: wrap; 
}

.ue-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* LOGOuri */
.ue-flag  { height: 80px; width: auto; display: block; }
.gov-logo { height: 90px; width: auto; display: block; }

.ue-text {
  font-size: 16px;
  font-weight: bold;
  color: var(--albastru);
  line-height: 1.35;
  white-space: nowrap;
}

.header-tagline {
  font-size: 13.8px;
  font-weight: bold;
  color: var(--negru);
  text-align: center;
  line-height: 1.5;
}

/* ── LAYOUT ── */
#wrapper {
  display: flex;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ── SIDEBAR ── */
#sidebar {
  width: var(--nav-w);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--gri-linie);
  padding-top: 24px;
}

#sidebar nav ul { list-style: none; }

#sidebar nav ul li a {
  display: block;
  padding: 9px 16px 9px 14px;
  color: var(--albastru);
  text-decoration: none;
  font-size: 13px;
  border-left: 3px solid transparent;
  border-bottom: 1px dashed var(--gri-linie);
  line-height: 1.4;
}

#sidebar nav ul li a:hover {
  background: #eef2fa;
  border-left-color: var(--albastru);
}

#sidebar nav ul li a.active {
  background: #dce8f6;
  border-left-color: var(--albastru);
  font-weight: bold;
}

/* ── CONTENT ── */
#content {
  flex: 1;
  padding: 36px 52px;
}

/* Loading state */
#content.loading { opacity: 0.4; transition: opacity 0.15s; }

/* ── ACASA ── */
.acasa-block {
  text-align: center;
  padding: 52px calc(var(--nav-w) + 24px) 40px calc(var(--nav-w) + 24px);
}

.proiect-titlu-label { font-size: 15px; font-weight: bold; margin-bottom: 14px; }
.proiect-titlu       { font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
.proiect-acronim     { font-size: 14px; line-height: 1.8; }

/* ── DETALII / CONTACT: heading + paragraphs ── */
.detalii-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gri-linie);
}

.detalii-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detalii-h {
  font-size: 15px;
  font-weight: bold;
  color: var(--albastru);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.detalii-block p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 6px;
}

.detalii-block p:last-child { margin-bottom: 0; }

.rezultate-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.rezultate-list li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* ── STADIU ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}

.data-table thead tr         { background: var(--albastru); color: #fff; }
.data-table thead th         { padding: 10px 12px; text-align: center; font-weight: bold; line-height: 1.4; }
.data-table thead th:first-child { text-align: left; }
.data-table tbody tr         { border-bottom: 1px solid var(--gri-linie); }
.data-table tbody tr:hover   { background: #f0f5fb; }
.data-table tbody td         { padding: 10px 12px; text-align: center; line-height: 1.5; }
.data-table tbody td:first-child { text-align: left; }
.data-table tfoot td         { font-size: 12px; color: #555; font-style: italic; padding: 8px 4px; }

.stadiu-nota {
  text-align: center;
  font-style: italic;
  font-size: 13px;
  font-weight: bold;
  color: #444;
  margin-top: 20px;
}

/* ── ANUNTURI ── */
.anunt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.anunt-table thead tr     { background: var(--albastru); color: #fff; }
.anunt-table thead th     { padding: 10px 16px; font-weight: bold; text-align: left; }
.anunt-table tbody tr     { border-bottom: 1px solid var(--gri-linie); }
.anunt-table tbody td     { padding: 11px 16px; }
.anunt-table a            { color: var(--albastru); font-weight: bold; text-decoration: none; }
.anunt-table a:hover      { text-decoration: underline; }

/* ── FOOTER ── */
#footer {
  height: var(--footer-h);
  background: #fff;
  border-top: 2px solid var(--albastru);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}
