:root {
  --bg-color: #ffffff;
  --bg-secondary-color: #f8fafc;
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-primary-light: #60a5fa;
  --color-lightGrey: #e2e8f0;
  --color-grey: #64748b;
  --color-darkGrey: #1e293b;
  --color-error: #ef4444;
  --color-success: #10b981;
  --font-family-sans: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  
  /* Modern gradient colors */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

body nav {
  padding:1em;
}

/* ===========================
   Modern Animated Input Fields
=========================== */
input[type="text"]:not(.colonia-search-input),
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select:not(.colonia-select) {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-lightGrey);
  color: var(--color-darkGrey);
  font-family: var(--font-family-sans);
  font-size: 1rem;
  border-radius: 12px;
  outline: none;
  padding: 0.75rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

input[type="text"]:not(.colonia-search-input):hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:not(.colonia-select):hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

input[type="text"]:not(.colonia-search-input):focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:not(.colonia-select):focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1),
              0 8px 16px rgba(59, 130, 246, 0.2),
              0 0 0 1px var(--color-primary);
  transform: translateY(-2px) scale(1.01);
  animation: inputGlow 2s ease-in-out infinite;
}

@keyframes inputGlow {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1),
                0 8px 16px rgba(59, 130, 246, 0.2),
                0 0 0 1px var(--color-primary);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15),
                0 12px 24px rgba(59, 130, 246, 0.3),
                0 0 0 1px var(--color-primary);
  }
}

.colonia-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
}

/* ===========================
   Modern Checkboxes with Animation
=========================== */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25em;
  height: 1.25em;
  border: 2px solid var(--color-lightGrey);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

input[type="checkbox"]:hover {
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

input[type="checkbox"]:checked {
  background: var(--gradient-blue);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  animation: checkboxPulse 0.4s ease;
}

@keyframes checkboxPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 0.15em;
  left: 0.4em;
  width: 0.3em;
  height: 0.6em;
  border-right: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(45deg);
  animation: checkmarkDraw 0.3s ease forwards;
}

@keyframes checkmarkDraw {
  from {
    opacity: 0;
    transform: scale(0) rotate(45deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}

/* ===========================
   Modern Radio Buttons with Animation
=========================== */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25em;
  height: 1.25em;
  border: 2px solid var(--color-lightGrey);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

input[type="radio"]:hover {
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

input[type="radio"]:checked {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  animation: radioPulse 0.4s ease;
}

@keyframes radioPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5em;
  height: 0.5em;
  background: var(--gradient-blue);
  border-radius: 50%;
  animation: radioDot 0.3s ease forwards;
}

@keyframes radioDot {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ===========================
   Modern Fancy List with Glassmorphism
=========================== */
.fancy-list {
  list-style: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.fancy-list li {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.fancy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--gradient-blue);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fancy-list li:hover::before {
  transform: scaleY(1);
}

.fancy-list li:last-child {
  border-bottom: none;
}

.fancy-list li:hover {
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.fancy-list li:active {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(2px);
}

.fancy-list .icon {
  font-size: 1.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.fancy-list .icon i {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fancy-list .content {
  flex: 1;
}

.fancy-list h4 {
  margin: 0;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 1.25rem;
}

.fancy-list p {
  margin: 0.25rem 0 0;
  color: var(--color-grey);
  font-size: 0.95rem;
}

.fancy-list .action {
  color: var(--color-lightGrey);
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.fancy-list .action i {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fancy-list li:hover .icon {
  transform: rotate(5deg) scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

.fancy-list li:hover .icon i {
  animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.fancy-list li:hover .action {
  color: var(--color-primary);
}

.fancy-list li:hover .action i {
  transform: translateX(6px);
  color: var(--color-primary);
}

/* ===========================
   Modern Mobile Navigation
=========================== */
.mobile-menu-toggle {
  display: none;
}

.hamburger {
  width: 32px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger:hover {
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  transform: scale(1.05);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--gradient-blue);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1000;
  transform: translateY(-8px);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  border-radius: 0 0 16px 16px;
}

.mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--color-darkGrey);
  transition: all 0.2s ease;
  position: relative;
}

.mobile-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--gradient-blue);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.mobile-menu a:hover::before {
  transform: scaleY(1);
}

.mobile-menu a:hover {
  background: rgba(59, 130, 246, 0.05);
  padding-left: 1.75rem;
}

.mobile-menu a.logout {
  color: var(--color-error);
}

.mobile-menu a.logout:hover {
  background: rgba(239, 68, 68, 0.05);
}

@media (max-width: 768px) {
  #menu-toggle:checked ~ .mobile-menu {
    display: block !important;
    width: 100%;
    transform: translateY(0);
    opacity: 1;
    max-height: 320px;
  }

  nav:has(#menu-toggle:checked) .hamburger {
    transform: rotate(0deg) scale(1.05);
    background: rgba(59, 130, 246, 0.1);
  }
  
  nav:has(#menu-toggle:checked) .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  nav:has(#menu-toggle:checked) .hamburger span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  
  nav:has(#menu-toggle:checked) .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@supports not selector(:has(*)) {
  @media (max-width: 768px) {
    #menu-toggle:checked ~ div:last-of-type .hamburger {
      transform: rotate(0deg) scale(1.05);
      background: rgba(59, 130, 246, 0.1);
    }
    
    #menu-toggle:checked ~ div:last-of-type .hamburger span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    
    #menu-toggle:checked ~ div:last-of-type .hamburger span:nth-child(2) {
      opacity: 0;
      width: 0;
    }
    
    #menu-toggle:checked ~ div:last-of-type .hamburger span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }
  }
}

