/* AI Audit Modal Styles */
.audit-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.audit-modal-content {
  background: linear-gradient(135deg, rgba(30,41,59,0.95) 0%, rgba(15,23,42,0.95) 100%);
  margin: 2% auto;
  padding: 0;
  border: 2px solid #06b6d4;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.audit-modal-header {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.audit-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.audit-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.audit-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.audit-modal-body {
  padding: 30px;
  color: #e6f7f7;
}

.audit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.audit-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-form-label {
  font-weight: 600;
  color: #06b6d4;
  font-size: 1rem;
}

.audit-form-input,
.audit-form-select,
.audit-form-textarea {
  padding: 12px 16px;
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
  color: #e6f7f7;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.audit-form-input:focus,
.audit-form-select:focus,
.audit-form-textarea:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.audit-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.audit-form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-form-radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.audit-form-radio-item:hover {
  background-color: rgba(6, 182, 212, 0.1);
}

.audit-form-radio {
  width: 18px;
  height: 18px;
  accent-color: #06b6d4;
}

.audit-form-radio-label {
  color: #e6f7f7;
  cursor: pointer;
  flex: 1;
}

.audit-submit-btn {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

.audit-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.audit-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.audit-success-message {
  display: none;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.2) 100%);
  border: 2px solid #22c55e;
  border-radius: 12px;
  color: #22c55e;
  font-weight: 600;
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .audit-modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 85vh;
  }
  
  .audit-modal-header {
    padding: 15px 20px;
  }
  
  .audit-modal-title {
    font-size: 1.3rem;
  }
  
  .audit-modal-body {
    padding: 20px;
  }
}

/* Toast notification */
.audit-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1100;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35);
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0;
  animation: toastFadeIn 0.25s ease forwards;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, 20px); }
}
