/* =============================================
   ECU Frontend Styles
   ============================================= */

/* Sakrij originalni Elementor upload field */
.elementor-field-group[data-ecu-init="true"] {
  display: none !important;
}

/* Wrapper */
.ecu-ui {
  margin-top: 8px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Napomena */
.ecu-note {
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
  margin-bottom: 12px;
}

/* Dugmad wrapper */
.ecu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Glavno upload dugme */
.ecu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--e-global-color-accent, #6366f1);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  border: none;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.12);
  transition: filter 0.2s, transform 0.2s;
}
.ecu-trigger:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}
.ecu-trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* Clear dugme */
.ecu-clear {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  transition: background 0.2s, color 0.2s;
}
.ecu-clear:hover {
  background: #f9fafb;
  color: #374151;
}

/* Lista fajlova */
.ecu-files {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

/* Kartica fajla */
.ecu-file-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05);
}

/* Leva strana */
.ecu-file-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Ikonica */
.ecu-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex: 0 0 38px;
}

/* Meta */
.ecu-file-meta {
  min-width: 0;
}

/* Naziv fajla */
.ecu-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  word-break: break-word;
}

/* Veličina fajla */
.ecu-file-size {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
}

/* Badge */
.ecu-file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #eef2ff;
  color: #3730a3;
}
.ecu-file-badge.ecu-badge--pdf {
  background: #fee2e2;
  color: #b91c1c;
}
.ecu-file-badge.ecu-badge--doc {
  background: #dbeafe;
  color: #1d4ed8;
}
.ecu-file-badge.ecu-badge--image {
  background: #dcfce7;
  color: #15803d;
}

/* Statusne poruke */
.ecu-ready,
.ecu-success,
.ecu-error {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.ecu-ready {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  margin-bottom: 12px;
}
.ecu-success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.ecu-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.ecu-error p {
  margin: 0 0 4px;
  font-weight: 500;
}
.ecu-error p:last-child {
  margin-bottom: 0;
}
