.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.settings-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea::placeholder {
    color: #8e9aaf;
    font-style: italic;
}

/* Special styling for AI customization textarea */
#aiPersonality {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    line-height: 1.6;
    min-height: 150px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

#aiPersonality:focus {
    background: white;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15), inset 0 2px 4px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

#aiPersonality::placeholder {
    color: #6c757d;
    font-style: normal;
    font-weight: 400;
}

/* Special label styling for AI customization */
#aiPersonality + small {
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
}

/* Enhanced label for AI customization */
label[for="aiPersonality"] {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

label[for="aiPersonality"]::before {
    content: "🤖";
    font-size: 1.2rem;
}

/* AI Personality section styling */
.settings-section:has(h2:contains("AI Assistant Personality")) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border: 1px solid #e1f5fe;
}

.settings-section h2:contains("AI Assistant Personality") {
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #3498db;
}

/* Alternative approach for AI section styling */
.ai-personality-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border: 1px solid #e1f5fe;
    position: relative;
    overflow: hidden;
}

.ai-personality-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
}

.ai-personality-section h2 {
    color: #2c3e50;
    position: relative;
}

.ai-personality-section h2::before {
    content: "🤖";
    margin-right: 8px;
    font-size: 1.3rem;
}

.save-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.save-btn:hover {
    background: #005bb5;
}

.time-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.time-input {
    display: flex;
    flex-direction: column;
}

.time-input label {
    font-size: 0.9rem;
    color: #666;
}

/* Pricing Inputs Styles */
.pricing-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pricing-input {
    display: flex;
    flex-direction: column;
}

.pricing-input label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.pricing-input input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #f9f9f9;
}

.pricing-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Responsive layout for pricing inputs */
@media (max-width: 768px) {
    .pricing-inputs {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .pricing-inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Modern Checkbox Styles */
.modern-checkbox {
  display: inline-block;
  position: relative;
  padding-left: 36px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

.modern-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.modern-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: #eee;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
  border: 2px solid #bbb;
}

.modern-checkbox input:checked ~ .checkmark {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

.modern-checkbox .checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

.modern-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.modern-checkbox .checkmark:after {
  left: 8px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Authorized Emails Management Styles */
.authorized-emails-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.current-emails h3,
.add-email-section h3 {
    color: #333;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.emails-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s;
}

.email-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.email-text {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.remove-email-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s;
}

.remove-email-btn:hover {
    background: #c82333;
}

.add-email-section .form-group {
    display: flex;
    gap: 12px;
    align-items: end;
}

.add-email-section .form-group input {
    flex: 1;
}

.add-email-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.add-email-btn:hover {
    background: #218838;
}

.add-email-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.email-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
}

.email-success {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 4px;
} 