:root {
  /* Light theme (default) */
  --background-color: #ffffff;
  --text-color: #333333;
  --text-color-rgb: 51, 51, 51;
  --primary-color: #F6821F;
  --primary-hover: #e67616;
  --secondary-color: #2C7CB0;
  --secondary-hover: #256a98;
  --accent-color: #FBAD41;
  --border-color: #dddddd;
  --card-bg: #f9f9f9;
  --error-color: #f44336;
  --error-color-rgb: 244, 67, 54;
  --error-color-dark: #c62828;
  --success-color: #4CAF50;
  --success-color-rgb: 76, 175, 80;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --header-bg: #f5f5f5;
  --footer-bg: #f5f5f5;
  --principal-orange: #F6821F;
  --principal-orange-dark: #e67616;
  --principal-blue: #2C7CB0;
  --principal-blue-dark: #256a98;
  --card-hover: #f0f0f0;
  --header-hover: rgba(0, 0, 0, 0.05);
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #1a1a1a;
    --text-color: #f0f0f0;
    --text-color-rgb: 240, 240, 240;
    --primary-color: #F6821F; 
    --primary-hover: #ff9642;
    --secondary-color: #4095d0;
    --secondary-hover: #56a7e0;
    --accent-color: #FBAD41;
    --border-color: #444444;
    --card-bg: #2d2d2d;
    --error-color: #ef5350;
    --error-color-rgb: 239, 83, 80;
    --error-color-dark: #c62828;
    --success-color: #66bb6a;
    --success-color-rgb: 102, 187, 106;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --header-bg: #2d2d2d;
    --footer-bg: #2d2d2d;
    --principal-orange: #F6821F;
    --principal-orange-dark: #e67616;
    --principal-blue: #4095d0;
    --principal-blue-dark: #256a98;
    --card-hover: #3a3a3a;
    --header-hover: rgba(255, 255, 255, 0.1);
  }
}

/* Manual theme switching with classes */
.light-theme {
  --background-color: #ffffff;
  --text-color: #333333;
  --text-color-rgb: 51, 51, 51;
  --primary-color: #F6821F;
  --primary-hover: #e67616;
  --secondary-color: #2C7CB0;
  --secondary-hover: #256a98;
  --accent-color: #FBAD41;
  --border-color: #dddddd;
  --card-bg: #f9f9f9;
  --error-color: #f44336;
  --error-color-rgb: 244, 67, 54;
  --error-color-dark: #c62828;
  --success-color: #4CAF50;
  --success-color-rgb: 76, 175, 80;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --header-bg: #f5f5f5;
  --footer-bg: #f5f5f5;
  --principal-orange: #F6821F;
  --principal-orange-dark: #e67616;
  --principal-blue: #2C7CB0;
  --principal-blue-dark: #256a98;
  --card-hover: #f0f0f0;
  --header-hover: rgba(0, 0, 0, 0.05);
}

.dark-theme {
  --background-color: #1a1a1a;
  --text-color: #f0f0f0;
  --text-color-rgb: 240, 240, 240;
  --primary-color: #F6821F;
  --primary-hover: #ff9642;
  --secondary-color: #4095d0;
  --secondary-hover: #56a7e0;
  --accent-color: #FBAD41;
  --border-color: #444444;
  --card-bg: #2d2d2d;
  --error-color: #ef5350;
  --error-color-rgb: 239, 83, 80;
  --error-color-dark: #c62828;
  --success-color: #66bb6a;
  --success-color-rgb: 102, 187, 106;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --header-bg: #2d2d2d;
  --footer-bg: #2d2d2d;
  --principal-orange: #F6821F;
  --principal-orange-dark: #e67616;
  --principal-blue: #4095d0;
  --principal-blue-dark: #256a98;
  --card-hover: #3a3a3a;
  --header-hover: rgba(255, 255, 255, 0.1);
}

/* Base styles using the theme variables */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  width: 100%;
}

* {
  box-sizing: border-box;
}

img, svg {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-hover);
}

button {
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: var(--primary-hover);
}

input, select, textarea {
  background-color: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.error {
  color: var(--error-color);
}

.success {
  color: var(--success-color);
}

.cloud-flare {
  color: var(--principal-orange);
}

/* Responsive design */
@media (max-width: 768px) {
  /* Tablet and mobile */
  body {
    font-size: 14px;
  }
  
  button {
    padding: 6px 12px;
  }
  
  .card {
    padding: 12px;
  }
  
  html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Small mobile devices */
  body {
    font-size: 13px;
  }
  
  button {
    padding: 5px 10px;
    font-size: 0.9rem;
  }
  
  input, select, textarea {
    padding: 6px;
  }
} 