/* Baldaila Vizualizacija - WordPress Plugin Styles */

.baldaila-viz-wrapper {
  margin-top: 12px;
}

.baldaila-viz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  background: #ffc701;
  color: #3d3d3d;
  font-family: 'Didact Gothic', Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
}

.baldaila-viz-btn:hover {
  background: #e6b400;
}

/* Modal overlay */
.baldaila-viz-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  font-family: 'Didact Gothic', Arial, Helvetica, sans-serif;
}

.baldaila-viz-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.baldaila-viz-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.baldaila-viz-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.baldaila-viz-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.baldaila-viz-close:hover {
  color: #333;
}

.baldaila-viz-title {
  font-size: 20px;
  font-weight: 400;
  color: #3d3d3d;
  margin-bottom: 6px;
}

.baldaila-viz-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

/* Product preview */
.baldaila-viz-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #f8f7f4;
  border-radius: 8px;
  margin-bottom: 20px;
}

.baldaila-viz-product img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.baldaila-viz-product-name {
  font-size: 15px;
  color: #3d3d3d;
}

/* Upload area */
.baldaila-viz-upload {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
}

.baldaila-viz-upload:hover {
  border-color: #00777F;
  background: #fafaf8;
}

.baldaila-viz-upload.has-image {
  padding: 0;
  border-style: solid;
  border-color: #00777F;
}

.baldaila-viz-upload img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.baldaila-viz-upload-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f0f0ec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.baldaila-viz-upload-icon svg {
  width: 22px;
  height: 22px;
  color: #00777F;
}

.baldaila-viz-upload-label {
  font-size: 15px;
  color: #555;
}

.baldaila-viz-upload-hint {
  font-size: 13px;
  color: #aaa;
  margin-top: 6px;
}

/* Generate button */
.baldaila-viz-generate {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #00777F;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.baldaila-viz-generate:hover:not(:disabled) {
  background: #005f66;
}

.baldaila-viz-generate:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Loading */
.baldaila-viz-loading {
  display: none;
  text-align: center;
  padding: 36px 16px;
}

.baldaila-viz-loading.active {
  display: block;
}

.baldaila-viz-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8e6e1;
  border-top-color: #00777F;
  border-radius: 50%;
  animation: baldaila-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes baldaila-spin {
  to { transform: rotate(360deg); }
}

.baldaila-viz-loading-text {
  font-size: 15px;
  color: #3d3d3d;
  margin-bottom: 4px;
}

.baldaila-viz-loading-sub {
  font-size: 13px;
  color: #999;
}

.baldaila-viz-timer {
  font-size: 20px;
  color: #00777F;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}

/* Result */
.baldaila-viz-result {
  display: none;
}

.baldaila-viz-result.active {
  display: block;
}

.baldaila-viz-result-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e8e6e1;
  margin-bottom: 12px;
}

.baldaila-viz-result-meta {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 16px;
}

.baldaila-viz-actions {
  display: flex;
  gap: 10px;
}

.baldaila-viz-retry {
  flex: 1;
  padding: 12px;
  border: 2px solid #00777F;
  border-radius: 8px;
  background: #fff;
  color: #00777F;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.baldaila-viz-retry:hover {
  background: #f0fafa;
}

.baldaila-viz-buy {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #ffc701;
  color: #3d3d3d;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.baldaila-viz-buy:hover {
  background: #e6b400;
  color: #3d3d3d;
}
