/* public/modules/modules-styles.css */
/* Bendri stiliai visiems moduliams */

/* ===== AUTH MODULE STYLES ===== */
.auth-escalation-container {
  padding: 20px;
  text-align: center;
}

.auth-escalation-header h3 {
  color: #3b82f6;
  margin-bottom: 10px;
}

.auth-escalation-message {
  color: #6b7280;
  margin-bottom: 20px;
}

.auth-level-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.level-badge {
  background: #3b82f6;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.level-name {
  font-size: 12px;
  color: #6b7280;
  margin-top: 5px;
}

.arrow {
  font-size: 20px;
  color: #3b82f6;
}

.auth-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.auth-start-btn, .auth-cancel-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.auth-start-btn {
  background: #10b981;
  color: white;
}

.auth-start-btn:hover {
  background: #059669;
}

.auth-cancel-btn {
  background: #f3f4f6;
  color: #6b7280;
}

.auth-cancel-btn:hover {
  background: #e5e7eb;
}

/* ===== FAVORITES MODULE STYLES ===== */
.favorites-container {
  padding: 20px;
}

.favorites-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.favorites-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.favorites-empty h3 {
  margin: 0 0 8px 0;
  color: #374151;
}

.favorites-section {
  margin-bottom: 30px;
}

.favorites-section-title {
  color: #374151;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.favorite-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s;
}

.favorite-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.favorite-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.favorite-card-title {
  margin: 0;
  font-size: 16px;
  color: #374151;
  flex: 1;
}

.favorite-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.favorite-remove-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.favorite-card-content p {
  margin: 8px 0;
  font-size: 14px;
  color: #6b7280;
}

.favorite-date {
  font-size: 12px !important;
  color: #9ca3af !important;
}

/* ===== MODAL MODULE STYLES ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  color: #374151;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
}

.modal-close:hover {
  color: #374151;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.modal-step h3 {
  color: #374151;
  margin-bottom: 20px;
}

.type-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.type-btn {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  text-align: center;
}

.type-btn:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.type-btn.selected {
  border-color: #3b82f6;
  background: #3b82f6;
  color: white;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.image-upload-area {
  text-align: center;
  padding: 20px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
}

.upload-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.upload-btn:hover {
  background: #2563eb;
}

.upload-hint {
  margin: 10px 0 0 0;
  font-size: 12px;
  color: #6b7280;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.image-preview-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.image-preview-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 12px;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  gap: 12px;
}

.modal-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.modal-btn.secondary {
  background: #f3f4f6;
  color: #6b7280;
}

.modal-btn.secondary:hover {
  background: #e5e7eb;
}

.modal-btn.primary {
  background: #3b82f6;
  color: white;
}

.modal-btn.primary:hover {
  background: #2563eb;
}

.modal-btn.success {
  background: #10b981;
  color: white;
}

.modal-btn.success:hover {
  background: #059669;
}

.modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== FLOW MODULE STYLES ===== */
.flow-progress {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.cancel-flow-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.cancel-flow-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.flow-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  font-size: 11px;
}

.flow-emoji {
  font-size: 12px;
}

.flow-name {
  color: #3b82f6;
  font-weight: 500;
}

/* Flow type specific colors */
.flow-rental-creation .progress-fill {
  background: #10b981;
}

.flow-service-creation .progress-fill {
  background: #3b82f6;
}

.flow-event-creation .progress-fill {
  background: #8b5cf6;
}

.flow-job-creation .progress-fill {
  background: #f59e0b;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .favorites-grid {
    grid-template-columns: 1fr;
  }
  
  .type-selection {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .auth-level-info {
    flex-direction: column;
    gap: 10px;
  }
  
  .arrow {
    transform: rotate(90deg);
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .flow-progress {
    margin: 8px;
    padding: 8px 12px;
  }
  
  .progress-text {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .modal-body {
    padding: 16px;
  }
  
  .modal-header {
    padding: 16px;
  }
  
  .modal-footer {
    padding: 16px;
  }
  
  .type-selection {
    grid-template-columns: 1fr;
  }
  
  .image-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}
