/* Rent Ad Modal Styles */
#rentAdModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100000;
  overflow-y: auto;
  padding: 20px;
}

#rentAdModal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remove all animations */
#rentAdModal,
.rent-ad-modal-content,
.rent-ad-tab-content {
  animation: none !important;
  transition: none !important;
}

.rent-ad-modal-content {
  background: #232323;
  border-radius: 12px;
  padding: 30px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  color: #ffd700;
  margin: 0 auto;
}

.rent-ad-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #444;
}

.rent-ad-modal-header h3 {
  margin: 0;
  color: #ffd700;
  font-size: 1.5em;
}

.rent-ad-modal-close {
  z-index: 100001;
  border-radius: 4px;
}

.rent-ad-modal-close:hover {
  background: #333;
}

/* Tabs */
.rent-ad-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid #444;
}

.rent-ad-tab-btn {
  background: transparent;
  border: none;
  color: #888;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  position: relative;
  bottom: -2px;
}

.rent-ad-tab-btn:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

.rent-ad-tab-btn.active {
  color: #ffd700;
  border-bottom-color: #ffd700;
}

/* Tab Content */
.rent-ad-tab-content {
  display: none;
}

.rent-ad-tab-content.active {
  display: block;
}

/* Form Styles */
.rent-ad-form-group {
  margin-bottom: 20px;
}

.rent-ad-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ffd700;
  font-weight: 500;
  font-size: 14px;
}

.rent-ad-form-group input,
.rent-ad-form-group select {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s;
}

.rent-ad-form-group input:focus,
.rent-ad-form-group select:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.rent-ad-form-group small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 12px;
}

.rent-ad-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Cost Display */
.rent-ad-cost {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #444;
  margin-bottom: 20px;
}

.rent-ad-cost-label {
  color: #888;
  font-size: 13px;
  margin-bottom: 5px;
}

.rent-ad-cost-value {
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
}

/* Preview */
.rent-ad-preview {
  border: 2px dashed #444;
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.rent-ad-preview img,
.rent-ad-preview video {
  max-width: 100%;
  max-height: 300px;
  border-radius: 6px;
}

/* Submit Button */
.rent-ad-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.rent-ad-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.rent-ad-submit:active {
  transform: translateY(0);
}

/* Table Styles */
.rent-ad-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.rent-ad-table thead {
  background: #1a1a1a;
}

.rent-ad-table th {
  padding: 12px;
  text-align: left;
  color: #ffd700;
  font-weight: 600;
  border-bottom: 2px solid #444;
}

.rent-ad-table td {
  padding: 12px;
  border-bottom: 1px solid #333;
  color: #fff;
}

.rent-ad-table tbody tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

/* Badge Styles */
.rent-ad-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.rent-ad-badge.success {
  background: #28a745;
  color: #fff;
}

.rent-ad-badge.warning {
  background: #ffc107;
  color: #000;
}

.rent-ad-badge.secondary {
  background: #6c757d;
  color: #fff;
}

.rent-ad-badge.info {
  background: #17a2b8;
  color: #fff;
}

/* Loading State */
.rent-ad-loading {
  text-align: center;
  padding: 40px;
  color: #888;
}

/* Empty State */
.rent-ad-empty {
  text-align: center;
  padding: 40px;
  color: #888;
}

/* Date Time Picker Styles */
.ad-datepicker {
  margin-bottom: 20px;
}

.ad-datepicker-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: #2a2a2a;
  border-radius: 6px;
}

.ad-datepicker-nav button {
  background: #444;
  border: none;
  color: #ffd700;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.ad-datepicker-nav button:hover {
  background: #555;
}

.ad-datepicker-nav button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ad-datepicker-current-month {
  font-size: 16px;
  font-weight: bold;
  color: #ffd700;
}

.ad-datepicker-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.ad-datepicker-day-header {
  text-align: center;
  padding: 8px;
  font-weight: bold;
  color: #888;
  font-size: 12px;
}

.ad-datepicker-day {
  aspect-ratio: 1;
  border: 2px solid #444;
  border-radius: 6px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-datepicker-day.other-month {
  opacity: 0.3;
  cursor: not-allowed;
}

.ad-datepicker-day.past {
  opacity: 0.4;
  cursor: not-allowed;
  background: #1a1a1a;
}

.ad-datepicker-day.active {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

.ad-datepicker-day-number {
  font-size: 11px;
  font-weight: bold;
  color: #fff;
}

.ad-datepicker-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2px;
}

.ad-datepicker-slot {
  height: 8px;
  border-radius: 2px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-datepicker-slot.free {
  background: #28a745;
}

.ad-datepicker-slot.occupied {
  background: #dc3545;
}

.ad-datepicker-slot.selected {
  background: #ffd700;
  box-shadow: 0 0 4px #ffd700;
}

.ad-timepicker {
  margin-top: 20px;
  padding: 15px;
  background: #2a2a2a;
  border-radius: 6px;
  border: 1px solid #444;
}

.ad-timepicker-title {
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 10px;
  font-size: 14px;
}

.ad-timepicker-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ad-timepicker-slot {
  padding: 10px;
  border: 2px solid #444;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: #1a1a1a;
  color: #fff;
}

.ad-timepicker-slot.free {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.ad-timepicker-slot.free:hover {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.2);
  transform: scale(1.05);
}

.ad-timepicker-slot.occupied {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  cursor: not-allowed;
  opacity: 0.6;
}

.ad-timepicker-slot.past {
  border-color: #666;
  background: rgba(102, 102, 102, 0.1);
  cursor: not-allowed;
  opacity: 0.5;
}

.ad-timepicker-slot.queued {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  cursor: not-allowed;
  opacity: 0.7;
}

.ad-timepicker-slot.selected {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.ad-timepicker-slot-label {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 2px;
}

.ad-timepicker-slot-time {
  font-size: 10px;
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .rent-ad-form-row {
    grid-template-columns: 1fr;
  }
  
  .rent-ad-tabs {
    flex-wrap: wrap;
  }
  
  .rent-ad-modal-content {
    padding: 20px;
    max-height: 95vh;
  }
  
  .ad-datepicker-calendar {
    gap: 4px;
  }
  
  .ad-timepicker-slots {
    grid-template-columns: 1fr;
  }
}

