/*
================================================================================
MODERN THEME - CSS GENERATOR
================================================================================

Theme Inspiration & Credits:
  • Contemporary web design principles with flat and neumorphic elements
  • Clean typography and gradient aesthetics
  • Modern accessibility standards and responsive design

This theme combines flat design elements with subtle gradients and shadows
for a contemporary, professional appearance.

================================================================================
*/

/* Modern Theme */

.modern-button {
  display: inline-block;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 10px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all 200ms ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modern-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.modern-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.modern-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modern-checkbox-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modern-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #667eea;
  cursor: pointer;
  border-radius: 4px;
}

.modern-checkbox-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  user-select: none;
  cursor: pointer;
  color: #333333;
}

.modern-radio-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modern-radio {
  width: 20px;
  height: 20px;
  accent-color: #667eea;
  cursor: pointer;
}

.modern-radio-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  user-select: none;
  cursor: pointer;
  color: #333333;
}

.modern-groupbox {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  background-color: #f9f9f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

.modern-groupbox-legend {
  margin-left: -16px;
  padding: 0 8px;
  background-color: #f9f9f9;
  font-weight: 600;
  color: #333333;
}

.modern-textbox-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modern-textbox-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}

.modern-textbox {
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  background-color: #ffffff;
  color: #333333;
  transition: all 200ms ease;
}

.modern-textbox:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-textbox:disabled {
  background-color: #f5f5f5;
  color: #999999;
}

.modern-dropdown {
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  background-color: #ffffff;
  color: #333333;
  cursor: pointer;
  transition: all 200ms ease;
}

.modern-dropdown:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-dropdown:disabled {
  background-color: #f5f5f5;
  color: #999999;
}

.modern-slider-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.modern-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #e0e0e0, #e0e0e0);
  outline: none;
  border-radius: 5px;
}

.modern-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.modern-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.modern-window {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

.modern-title-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modern-title-bar-text {
  font-weight: 600;
  font-size: 14px;
  user-select: none;
}

.modern-window-body {
  padding: 16px;
  background-color: #ffffff;
}
