/**
 * NaturRo Smart Feedback Styles
 */

#nr-feedback-tab {
  position: fixed;
  left: 0;
  top: 40%;
  padding: 10px 14px;
  background: #ff7b00; /* Bright Orange */
  color: white;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateX(0);
}

#nr-feedback-tab:hover {
  transform: translateX(5px);
  background: #e66f00;
}

#nr-feedback-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: 1000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  padding: 20px;
  box-sizing: border-box;
}

.nr-feedback-box {
  background: white;
  padding: 25px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin-top: -50px; /* Pull up slightly */
}

.nr-feedback-box h3 {
  margin-top: 0;
  color: #ff7b00;
}

.nr-feedback-box p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.nr-feedback-field {
  margin-bottom: 15px;
}

.nr-feedback-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}

.nr-feedback-field select,
.nr-feedback-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.nr-feedback-field select:focus,
.nr-feedback-field textarea:focus {
  outline: none;
  border-color: #ff7b00;
  box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.1);
}

.nr-feedback-box textarea {
  height: 100px;
  resize: none;
}

.nr-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.nr-feedback-box button {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
}

#nr-feedback-send {
  background: #ff7b00;
  color: white;
}

#nr-feedback-close {
  background: #f0f0f0;
  color: #333;
}

.nr-feedback-box button:hover {
  opacity: 0.9;
}

.nr-feedback-box button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#nr-feedback-status {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  #nr-feedback-tab {
    top: 60px; /* Below standard header/admin bar area */
    left: 0;
    bottom: auto;
    writing-mode: horizontal-tb;
    border-radius: 0 4px 4px 0;
    padding: 6px 10px;
    font-size: 13px;
    transform: none;
  }
  
  /* Account for admin bar if logged in */
  body.admin-bar #nr-feedback-tab {
    top: 100px; 
  }

  .nr-feedback-box {
    margin-top: 0;
    padding: 20px;
  }
}
