/* Modern Common Styles */

:root {
  /* Kru Rak purple color scheme */
  --bg-primary: #6A0DAD;
  --bg-primary-dark: #4A0A7A;
  --bg-primary-light: #A785BC;
  --bg-gradient: linear-gradient(135deg, #6A0DAD 0%, #A785BC 100%);
  --card-bg: #FFFFFF;
  --card-bg-elevated: #FAFAFA;
  --accent-color: #E03B3B;
  --correct-green: #10B981;
  --correct-green-light: #D1FAE5;
  --error-red: #EF4444;
  --error-red-light: #FEE2E2;
  --warning-yellow: #F59E0B;
  --warning-yellow-light: #FEF3C7;
  --text-dark: #1D1D1D;
  --text-medium: #6B7280;
  --text-light: #FFFFFF;
  --border-color: #E5E7EB;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border radius */
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;

  /* Layout */
  --max-width: 800px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #6A0DAD 0%, #4A0A7A 50%, #3A0858 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

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

input {
  font-family: inherit;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

/* Thai font classes */
.thai-font-0 {
  font-family: 'Athiti', 'Noto Sans Thai', sans-serif;
}

.thai-font-1 {
  font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

.thai-font-2 {
  font-family: 'Noto Sans Thai', sans-serif;
}

/* Utility classes */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
  opacity: 0;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
