@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,sans-serif;
  background:#fafafa;color:#1e293b;line-height:1.7;
  -webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column;min-height:100vh;
  position:relative;
}

/* Suptilne sive linije */
body::before{
  content:'';position:absolute;top:0;left:0;right:0;bottom:0;
  background:repeating-linear-gradient(0deg,transparent,transparent 60px,#e2e8f0 60px,#e2e8f0 61px);
  pointer-events:none;z-index:-1;opacity:0.2;
}

/* Header */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,0.98);
  backdrop-filter:blur(20px);
  border-bottom:1px solid #e2e8f0;
  padding:0.9rem 0;
}
nav{
  max-width:1200px;margin:0 auto;padding:0 2rem;
  display:flex;align-items:center;justify-content:space-between;
}

/* Boxed meni */
.menu{
  display:flex;gap:0.9rem;background:#f8fafc;
  padding:0.55rem 1.1rem;border-radius:999px;
  margin-left: 1rem;
  border:1px solid #e2e8f0;box-shadow:0 4px 15px rgba(0,0,0,0.05);
}
.menu a{
  color:#475569;font-weight:600;font-size:0.96rem;
  text-decoration:none;padding:0.45rem 0.95rem;
  border-radius:999px;transition:all .3s;
  white-space: nowrap;
  min-width: max-content;   /* forsira da link bude širok koliko treba */
}
.menu a:hover{background:#e2e8f0;color:#1e293b}
.menu a.active{background:#475569;color:white;font-weight:700}

/* Main & Card */
main{flex:1;padding:0rem 1rem 4rem;max-width:1000px;margin:0 auto;width:100%}
.card{
  background:white;padding:3.6rem 2.6rem;border-radius:1.5rem;
  box-shadow:0 12px 40px rgba(0,0,0,0.07);
  border:1px solid #e2e8f0;text-align:left;
}

/* Naslovi – još malo manji */
h1{font-size:2.45rem}     /* još manji – sad izgleda vrhunski */
h2{font-size:1.8rem}
h1,h2{
  font-weight:900;color:#0f172a;text-align:center;
  position:relative;padding-bottom:0.8rem;margin-bottom:2rem;
}
h1::after,h2::after{
  content:'';position:absolute;bottom:0;left:50%;
  transform:translateX(-50%);
  width:860px;height:1px;background:#64748b;
}

/* Tekst */
p{
  font-size:1.13rem;color:#475569;margin-bottom:1.3rem;
  max-width:720px;margin-left:auto;margin-right:auto;
}
p:first-of-type{font-size:1.26rem;color:#1e293b;margin-bottom:1.3rem}
p:nth-of-type(2){
  font-size:1.16rem;
  color:#64748b !important;   /* Camunda 8 linija – još više siva */
  font-weight:600;margin-bottom:1.9rem;
}

/* Liste */
ul li{
  list-style:square;position:relative;padding-left:1.2rem;
  font-size:1.13rem;color:#475569;margin-bottom:1rem;
}

/* Jedinstveno poravnanje za sve sekcije – lijevo, kao na ai-agents stranici */
.card section {
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Opcionalno: ako želiš da i naslovi unutar sekcija budu lijevo (a ne centrirani) */
.card section h2,
.card section h3 {
    text-align: left;
    margin-bottom: 1.5rem;
}
.card section p {
    text-align: center;
}
.card section h2::after,
.card section h3::after {
    left: 0;
    transform: none;            /* plava crtica više nije centrirana */
}

/* Leistungen */
.grid{display:grid;gap:1.6rem;margin:2.6rem 0}
@media(min-width:768px){.grid{grid-template-columns:repeat(2,1fr)}}
.leistungen-card{
  background:#f8fafc;padding:1.8rem;border-radius:1rem;
  border-left:4px solid #64748b;text-align:left;transition:all .3s;
}
.leistungen-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px rgba(100,116,139,0.11)}
.leistungen-card h3{color:#1e293b;font-size:1.4rem;margin-bottom:0.7rem}

/* Dugme – još malo manje */
.btn-primary{
  display:inline-block;background:#475569;color:white;
  font-weight:700;font-size:0.98rem;
  padding:0.7rem 2.1rem;border-radius:999px;
  text-decoration:none;
  box-shadow:0 7px 22px rgba(71,85,105,0.28);
  transition:all .3s;margin:2rem auto 0;
}
.btn-primary:hover{
  background:#334155;transform:translateY(-3px);
  box-shadow:0 10px 30px rgba(71,85,105,0.38);
}

.bpmn-container {
  width: 100%;
  height: 720px;
  max-width: 1100px;
  margin: 3rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  background: #fff;
}

.bpmn-container .loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #555;
  z-index: 10;
}

/* Footer – tanji + copyright 100% čitljiv */
footer {
  background:#0f172a;
  color:#e2e8f0;                    /* bijelo-siva, potpuno čitljivo */
  text-align:center;
  padding:1.6rem 1rem;
  font-size:0.94rem;
  margin-top:auto;
  border-top:1px solid #1e293b;
}
footer p a{
  color:#e2e8f0;
  text-decoration:none;
  font-weight:500;
}

footer p {
  color:#e2e8f0 !important;
  text-decoration:none;
  font-weight:500;
}

footer a:hover{
  text-decoration:underline;
}

/* Responsive */
@media(max-width:768px){
  .logo{font-size:1.6rem}
  .menu{gap:0.5rem;padding:0.5rem 0.9rem}
  .menu a{font-size:0.92rem;padding:0.4rem 0.8rem}
  h1{font-size:2.2rem}
  h2{font-size:1.8rem}
  .card{padding:2.8rem 2rem}
  .btn-primary{padding:0.65rem 1.9rem;font-size:0.96rem}
}

/* ========================================
   PRAXIS STRANICA – LIJEVI SIDEBAR + BPMN
   ======================================== */

.container {
  display: flex;
  min-height: calc(100vh - 140px); /* da ne preklapa footer */
  margin-top: 1rem;
}

.sidebar {
  width: 300px;
  background: white;
  border-right: 1px solid #e2e8f0;
  padding: 2.8rem 2rem;
  position: sticky;
  top: 90px;
  height: calc(100vh - 90px);
  overflow-y: auto;
  box-shadow: 4px 0 15px rgba(0,0,0,0.04);
}

.sidebar h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  display: block;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  color: #475569;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s;
}

.sidebar a:hover {
  background: #f1f5f9;
  color: #1e293b;
  transform: translateX(4px);
}

.sidebar a.active {
  background: #475569;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(71,85,105,0.3);
}

/* Glavni sadržaj desno */
.main-content {
  flex: 1;
  padding: 2rem 3rem 4rem;
  max-width: 1200px;
}

.main-content .card {
  text-align: center;
  padding: 3.6rem 3rem;
}

.main-content h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.26rem;
  color: #1e293b;
  margin-bottom: 1.6rem;
  font-weight: 500;
}

.hint {
  text-align: center;
  color: #64748b;
  font-size: 1.05rem;
  margin: 2rem 0 1.5rem;
  font-weight: 500;
}

/* BPMN Viewer – savršeno uklapa u tvoj dizajn */
.bpmn-container {
  width: 100%;
  height: 740px;
  margin: 3rem auto;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid #e2e8f0;
  background: white;
}

/* Responsive za mobilne */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 2rem;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .main-content {
    padding: 2rem 1.5rem;
  }
  .bpmn-container {
    height: 560px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    padding: 1.5rem;
  }
  .sidebar a {
    padding: 0.8rem 1rem;
    font-size: 0.98rem;
  }
  .main-content h1 {
    font-size: 2.3rem;
  }
  .bpmn-container {
    height: 500px;
  }
}
