/* Zamanati Frontend - Minimal Layout Only */

* {
  direction: rtl;
  text-align: right;
}

/* Container */
.zamanati-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
}

/* Form */
.zamanati-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zamanati-title {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: bold;
}

.zamanati-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zamanati-field label {
  font-weight: 600;
  font-size: 14px;
}

.zamanati-field input,
.zamanati-field textarea,
.zamanati-field select {
  padding: 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  border-opacity: 0.2;
}

.zamanati-field small {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

/* Buttons */
.zamanati-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.zamanati-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.zamanati-btn-primary {
  background-color: inherit;
  color: white;
}

.zamanati-btn-secondary {
  background-color: inherit;
  color: currentColor;
  border: 1px solid currentColor;
}

/* Summary */
.zamanati-summary {
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  background-color: rgba(0, 0, 0, 0.02);
  border-inline-end: 4px solid currentColor;
}

.zamanati-summary p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  gap: 16px;
}

.zamanati-summary strong {
  flex: 0 0 auto;
  font-weight: 600;
}

/* Cards */
.zamanati-guarantee-card {
  border: 1px solid currentColor;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
  border-opacity: 0.2;
}

.zamanati-card-header {
  padding: 12px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  border-opacity: 0.1;
}

.zamanati-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zamanati-card-body p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  gap: 12px;
}

.zamanati-card-body strong {
  flex: 0 0 100px;
  font-weight: 600;
}

/* QR Code */
.zamanati-qr-container {
  text-align: center;
  margin-top: 12px;
}

.zamanati-qr-code {
  max-width: 150px;
  height: 150px;
  border: 1px solid currentColor;
  padding: 4px;
  border-radius: 4px;
  border-opacity: 0.2;
}

.zamanati-qr-container p {
  font-size: 12px;
  margin-top: 8px;
  margin-bottom: 0;
  opacity: 0.7;
}

/* Status Badges */
.zamanati-status-active {
  color: #28a745;
  font-weight: 600;
}

.zamanati-status-expired {
  color: #dc3545;
  font-weight: 600;
}

/* Messages */
.zamanati-error {
  color: #dc3545;
  margin: 12px 0;
}

.zamanati-loading {
  color: #0066cc;
  margin: 12px 0;
}

.zamanati-success {
  color: #28a745;
  margin: 12px 0;
}

.zamanati-success-box {
  background-color: rgba(40, 167, 69, 0.1);
  padding: 12px;
  border-radius: 4px;
  border-inline-end: 4px solid #28a745;
  margin-top: 12px;
}

.zamanati-success-box p {
  margin: 8px 0;
  color: #28a745;
}

.zamanati-success-message {
  text-align: center;
  padding: 20px;
  border-radius: 4px;
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  border-opacity: 0.3;
  margin-top: 12px;
}

.zamanati-success-message h2 {
  color: #28a745;
  margin: 0 0 8px 0;
  font-size: 24px;
}

.zamanati-success-message p {
  color: #28a745;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .zamanati-container {
    max-width: 100%;
    padding: 12px;
  }

  .zamanati-form-actions {
    flex-direction: column;
  }

  .zamanati-btn {
    width: 100%;
  }

  .zamanati-field input,
  .zamanati-field textarea,
  .zamanati-field select {
    font-size: 16px;
  }

  .zamanati-card-body p {
    flex-direction: column;
  }

  .zamanati-card-body strong {
    flex: auto;
    margin-bottom: 4px;
  }

  .zamanati-summary p {
    flex-direction: column;
  }

  .zamanati-summary strong {
    margin-bottom: 4px;
  }
}
