/* =========================
   APP WRAPPER
   ========================= */

.cc-app{
  display:grid;
  gap:22px;
  max-width:1720px;
  width:100%;
  margin:0 auto;
  padding:0 24px;
  box-sizing:border-box;
}

/* =========================
   HERO
   ========================= */

.cc-hero{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
  border:1px solid var(--cc-border);
  border-radius:18px;
  background:
    radial-gradient(1200px 180px at 0% -10%, #f3f4f6 0%, transparent 60%),
    radial-gradient(1200px 180px at 100% 110%, #eef2f7 0%, transparent 60%),
    #fff;
  box-shadow:var(--cc-shadow);
}

.cc-hero__emoji{
  font-size:34px;
}

.cc-hero__title{
  margin:0;
  font-size:24px;
  font-weight:800;
}

.cc-hero__subtitle{
  margin:2px 0 0;
  color:var(--cc-muted);
  font-size:14px;
}

/* =========================
   CARD
   ========================= */

.cc-card{
  background:var(--cc-surface);
  border:1px solid var(--cc-border);
  border-radius:var(--cc-radius);
  box-shadow:var(--cc-shadow);
  padding:18px;
  min-width:0;
}

.cc-card-header{
  margin-bottom:12px;
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
}

.cc-card-header h2{
  margin:0 0 6px;
  font-size:22px;
  font-weight:800;
}

.cc-subtitle{
  color:var(--cc-muted);
  font-size:16px;
  margin:0;
}

/* =========================
   FORM / CONTENT WRAPPERS
   ========================= */

#cc-calculator-form{
  display:block;
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
  min-width:0;
}

#cc-table-container{
  width:100%;
  max-width:none;
  margin:0;
  overflow-x:auto;
  min-width:0;
}

/* =========================
   GRID HELPERS
   ========================= */

.cc-grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.cc-grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.cc-grid-4{
  display:grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(170px, 1fr) minmax(280px, 1.6fr) minmax(360px, 2fr);
  gap:14px;
  align-items:end;
}

#cc-school-main-row > .cc-field{
  min-width:0;
}

#cc-school-main-row #cc-smer{
  width:100%;
  max-width:100%;
  min-width:0;
}

#cc-school-main-row #cc-smer option,
#cc-school-main-row #cc-skola option{
  text-overflow:ellipsis;
}

/* =========================
   ACTIONS ROW
   ========================= */

.cc-actions-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:10px;
  flex-wrap:wrap;
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
  min-width:0;
}

/* =========================
   YEAR BOX WRAP SAFETY
   ========================= */

.cc-yearbox-wrap{
  min-width:0;
}

/* =========================
   WIDE LAYOUT OVERRIDES
   ========================= */

.ast-container,
.ast-container-fluid,
.elementor-section .elementor-container,
.entry-content{
  max-width:100% !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width:1100px){
  .cc-grid-4{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:900px){
  .cc-grid-3{
    grid-template-columns:1fr;
  }

  .cc-grid-4{
    grid-template-columns:1fr;
  }
}

@media (max-width:680px){
  .cc-grid-2{
    grid-template-columns:1fr;
  }
}

@media (min-width:1200px){
  .cc-app{
    position:relative;
    left:50%;
    transform:translateX(-50%);
    width:min(1840px, calc(100vw - 32px));
    max-width:none;
    margin:0;
    padding:0 16px;
    box-sizing:border-box;
  }

  .cc-hero,
  .cc-card{
    width:100%;
    max-width:none;
  }

  .cc-card-header,
  #cc-calculator-form,
  #cc-table-container,
  .cc-actions-row{
    max-width:none;
  }
}

.cc-link {
  font-size: inherit !important;
  font-weight: inherit !important;
  display: inline !important;
  color: inherit !important;
  text-decoration: underline !important;
}
/* ovo je dodato zbog mobilnog telefona */

.cc-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.cc-table {
  min-width: 900px;
}