/* 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: #FFC700;
  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: #FFC700;
  color: #000;
  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: #FFC700;
}

.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: transparent !important;
  border: 1px solid #000000 !important;
  border-radius: 4px !important;
  padding: 7px 8px 3px !important;
  transition: all 0.2s;
  display: inline-flex !important;
  margin: 4px 4px 2px 4px !important;
  min-height: 22px !important;
  cursor: pointer;
}

.favorite-card:hover {
  background: transparent;
  border-color: #FFC700;
  box-shadow: 0 2px 8px rgba(255, 199, 0, 0.3);
}

.favorite-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  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;
}

/* Favorites badge - juodas su geltonu tekstu */
.favorites-count {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #ff0000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFC700;
}
/* ===== 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 #FFD700;
}

.modal-header h2 {
  margin: 0;
  color: #FFC700;
}

.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: #FFFBEB;
  border: 2px solid #FFD700;
  border-radius: 8px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  text-align: center;
}

.type-btn:hover {
  border-color: #FFC700;
  background: #FFFBEB;
}

.type-btn.selected {
  border-color: #FFC700;
  background: #FFC700;
  color: #000;
  font-weight: 600;
}

.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: #FFC700;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.1);
}

.image-upload-area {
  text-align: center;
  padding: 20px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
}

.upload-btn {
  background: #FFC700;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.upload-btn:hover {
  background: #FFD700;
}

.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: #FFC700;
  color: #000;
  font-weight: 600;
}

.modal-btn.primary:hover {
  background: #FFD700;
}

.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: #FFC700;
  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: #FFC700;
  font-weight: 500;
}

/* Flow type specific colors */
.flow-rental-creation .progress-fill {
  background: #FFC700;
}

.flow-service-creation .progress-fill {
  background: #FFC700;
}

.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);
  }
}

/* ===== JOB LISTING STYLES (Blog-style, no yellow) ===== */
.job-section {
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(26, 26, 26, 0.95); /* Dark background */
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border: 1px solid #333333; /* Dark border */
}

.job-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #FFC700; /* Yellow heading - matches blog style */
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #444444; /* Dark border */
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-section h3 i {
  color: #FFC700; /* Yellow icon */
}

.job-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.job-info-item {
  padding: 12px 15px;
  background: #2a2a2a; /* Dark item background */
  border-radius: 6px;
  border-left: 3px solid #FFC700; /* Yellow accent */
  font-size: 14px;
  line-height: 1.5;
  color: #e6e6e6; /* Light text */
}

.job-info-item strong {
  display: block;
  color: #ffffff; /* White strong text */
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-contact-section {
  background: rgba(26, 26, 26, 0.95); /* Dark background */
  border-left: 4px solid #FFC700; /* Yellow accent */
}

.job-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.job-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #2a2a2a; /* Dark button background */
  border: 2px solid #444444;
  color: #e6e6e6; /* Light text */
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.job-contact-btn:hover {
  background: #3a3a3a;
  border-color: #FFC700; /* Yellow hover */
  color: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 199, 0, 0.15);
}

.job-contact-btn.primary {
  background: #FFC700; /* Yellow primary */
  border-color: #FFC700;
  color: #000000; /* Black text on yellow */
}

.job-contact-btn.primary:hover {
  background: #FFD700;
  border-color: #FFD700;
  color: #000000;
}

.job-contact-btn i {
  font-size: 16px;
}

.job-coordinates {
  margin-top: 10px;
  padding: 10px 15px;
  background: #2a2a2a; /* Dark background */
  border-radius: 6px;
  font-size: 13px;
  color: #e6e6e6; /* Light text */
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-coordinates i {
  color: #FFC700; /* Yellow icon */
}

.job-qr-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.listing-qr-code-wrapper {
  display: inline-block;
  padding: 15px;
  background: #ffffff; /* Keep QR code background white for scanning */
  border-radius: 8px;
  border: 2px solid #333333; /* Dark border */
  margin: 15px 0;
}

.listing-map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  border: 2px solid #333333; /* Dark border */
  overflow: hidden;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .job-section {
    padding: 20px;
    margin-bottom: 20px;
  }

  .job-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .job-contact-buttons {
    flex-direction: column;
  }

  .job-contact-btn {
    justify-content: center;
    width: 100%;
  }

  .job-qr-actions {
    flex-direction: column;
  }

  .listing-map {
    height: 250px;
  }
}
