:root {
  --primary-color: #0052CC;
  --secondary-color: #172B4D;
  --background-color: #FFFFFF;
  --border-color: #DFE1E6;
  --success-color: #36B37E;
  --error-color: #FF5630;
}

body {
  width: 400px;
  min-height: 300px;
  margin: 0;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #172B4D;
  background-color: var(--background-color);
}

.hidden {
  display: none !important;
}

.panel {
  padding: 16px;
  background: white;
  border-radius: 8px;
}

/* Form styles */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #DFE1E6;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

small {
  display: block;
  margin-top: 4px;
  color: #6B778C;
  font-size: 12px;
}

/* Button styles */
button {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.primary-button {
  background: #0052CC;
  color: white;
  border: none;
  padding: 8px 16px;
  width: 100%;
}

.primary-button:hover {
  background: #0747A6;
}

.secondary-button {
  background: #EBECF0;
  color: #172B4D;
  border: none;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary-button:hover {
  background: #DFE1E6;
}

.text-button {
  background: none;
  border: none;
  color: #0052CC;
  padding: 8px;
}

.text-button:hover {
  text-decoration: underline;
}

/* Attachment buttons */
.attachment-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.attachment-buttons img {
  width: 16px;
  height: 16px;
}

/* Loading overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 30, 66, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #FFFFFF;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Notification */
#notification {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  padding: 12px;
  background: #00875A;
  color: white;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#notification.error {
  background: #DE350B;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  padding: 0 4px;
}

/* Form actions */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

/* Auth Container */
#auth-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}

.auth-btn {
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background-color: #F4F5F7;
}

/* Capture Options */
.capture-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.capture-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.capture-btn:hover {
  background-color: #F4F5F7;
}

.capture-btn img {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}

/* Feedback Form */
#feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

select, input, textarea {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

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

#submit-btn {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

#submit-btn:hover {
  background-color: #0747A6;
}

/* Attachment Preview */
#attachment-preview {
  max-height: 200px;
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
}

/* Jira Fields */
.jira-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}