@tailwind base;
@tailwind components;
@tailwind utilities;

/* --- NEO-BRUTALIST THEME --- */

body {
  background-color: #e0e7ff; /* Indigo-100 */
  background-image: radial-gradient(#a5b4fc 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: "Space Grotesk", sans-serif;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: "Archivo Black", sans-serif;
}

/* Neo-Brutalist Utilities */
.neo-box {
  background-color: white;
  border: 3px solid black;
  box-shadow: 6px 6px 0px 0px black;
  transition: all 0.15s ease-in-out;
}

.neo-box:hover {
  box-shadow: 8px 8px 0px 0px black;
  transform: translate(-1px, -1px);
}

.neo-box-static {
  background-color: white;
  border: 3px solid black;
  box-shadow: 6px 6px 0px 0px black;
}

.neo-input {
  border: 3px solid black;
  box-shadow: 4px 4px 0px 0px black;
  font-weight: bold;
  transition: all 0.1s;
}
.neo-input:focus {
  outline: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px black;
}

.neo-btn {
  border: 3px solid black;
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  box-shadow: 5px 5px 0px 0px black;
  transition: all 0.1s;
  cursor: pointer;
}
.neo-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px 0px black;
}
.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px black; /* Pressed */
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #121212;
}
::-webkit-scrollbar-thumb {
  background: #ec4899;
  border: 2px solid black;
}
::-webkit-scrollbar-thumb:hover {
  background: #fbbf24;
}

/* Custom Inputs */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border: 3px solid black;
  background: #ec4899;
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 2px 2px 0px 0px black;
  transition: background 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  background: #fbbf24;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: white;
  border: 2px solid black;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Animations */
.glitch-wrapper {
  position: relative;
}
.glitch-wrapper::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 3px;
  color: #ec4899;
  z-index: -1;
  mix-blend-mode: multiply;
}
.glitch-wrapper::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: -3px;
  color: #06b6d4;
  z-index: -2;
  mix-blend-mode: multiply;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid #000;
@tailwind base;
@tailwind components;
@tailwind utilities;

/* --- NEO-BRUTALIST THEME --- */

body {
  background-color: #e0e7ff; /* Indigo-100 */
  background-image: radial-gradient(#a5b4fc 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: "Space Grotesk", sans-serif;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: "Archivo Black", sans-serif;
}

/* Neo-Brutalist Utilities */
.neo-box {
  background-color: white;
  border: 3px solid black;
  box-shadow: 6px 6px 0px 0px black;
  transition: all 0.15s ease-in-out;
}

.neo-box:hover {
  box-shadow: 8px 8px 0px 0px black;
  transform: translate(-1px, -1px);
}

.neo-box-static {
  background-color: white;
  border: 3px solid black;
  box-shadow: 6px 6px 0px 0px black;
}

.neo-input {
  border: 3px solid black;
  box-shadow: 4px 4px 0px 0px black;
  font-weight: bold;
  transition: all 0.1s;
}
.neo-input:focus {
  outline: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px black;
}

.neo-btn {
  border: 3px solid black;
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  box-shadow: 5px 5px 0px 0px black;
  transition: all 0.1s;
  cursor: pointer;
}
.neo-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px 0px black;
}
.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px black; /* Pressed */
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #121212;
}
::-webkit-scrollbar-thumb {
  background: #ec4899;
  border: 2px solid black;
}
::-webkit-scrollbar-thumb:hover {
  background: #fbbf24;
}

/* Custom Inputs */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border: 3px solid black;
  background: #ec4899;
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 2px 2px 0px 0px black;
  transition: background 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  background: #fbbf24;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: white;
  border: 2px solid black;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Animations */
.glitch-wrapper {
  position: relative;
}
.glitch-wrapper::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 3px;
  color: #ec4899;
  z-index: -1;
  mix-blend-mode: multiply;
}
.glitch-wrapper::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: -3px;
  color: #06b6d4;
  z-index: -2;
  mix-blend-mode: multiply;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid #000;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: rotation 1s linear infinite;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-enter {
  animation: slideUp 0.3s ease-out forwards;
}

/* Utilities */
.text-shadow {
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

/* New UI Elements */
.neo-card-calendar {
    background: #fff;
    border: 3px solid #000;
    box-shadow: 5px 5px 0px 0px #000;
    position: relative;
    overflow: hidden;
}
.neo-card-calendar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 12px;
    background: #ef4444; /* Red top like a real calendar */
    border-bottom: 3px solid #000;
}
