:root {
    --color-primary: #C5A572;
    --color-primary-dark: #B49562;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-700: #374151;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-gray-50);
    min-height: 100vh;
}

.container {
    max-width: 1310px;
    margin: 2rem auto;
    padding: 0 0 2rem 0;
}

.minus-button {
    font-weight: bold;
    padding-bottom: 25px;
    padding-left: 5px;
    padding-right: 6.5px;
    margin-right: 20px;
    height: 0px;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
    vertical-align: middle;
}

.square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  width: 20px;
  height: 25px;
  border: 2px solid #000;
  font-weight: bold;
  margin-right: 0px;
  border-radius: 5px;
}

.plus-button {
    font-weight: bold;
    padding-bottom: 28px;
    padding-left: 5px;
    padding-right: 5px;
    margin-right: 20px;
    margin-left: 20px;
    height: 0px;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
    vertical-align: middle;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  display: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

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

.arrow-button {
  display: flex;
  position: relative;
  top: 3px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: none;
  border: 2px solid black;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  margin-right: 5px;
  padding: 0;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}
.arrow-button.expanded {
  transform: rotate(180deg);
}

.rule-header {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.lock-row {
  display: flex;
  align-items: center;
  font-size: 18px;
}

.lock-icon {
  width: 24px;
  text-align: center;
}

.lock-toggle {
  width: 20px;
  height: 20px;
  border: 2px solid black;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 30px;
  
  background: none;
  border: 2px solid black;
  padding: 0;
  appearance: none;
}

.lock-toggle:focus {
  outline: 2px solid #007acc;
}

.lock-toggle.checked {
  background-color: #000;
}

.lock-toggle.checked .checkbox-square {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 2px;
}

.rule-text {
  font-family: "Proxima Nova", sans-serif;
  font-size: 18px;
  line-height: 1.22;
}

.rule-text .action {
  font-weight: bold;
}

.rule-text .action_e_ou {
  font-weight: 600;
}

.rule-text .gray {
  font-weight: 900;
  color: #878787;
}

.rule-text .black {
  font-weight: 900;
  color: #212529;
}

.loading {
  font-size: 1.5rem;
}

.dots::after {
  content: '';
  display: inline-block;
  animation: dots 1.5s infinite steps(4);
}

@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}