@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");

* {
  font-family: 'Space Grotesk', sans-serif;
  box-sizing: border-box;
}

.mono {
  font-family: 'Space Mono', monospace;
}

/* Neobrutalism Shadows */
.neo-shadow-2xs { box-shadow: 1px 1px 0px 0px #000000; }
.neo-shadow-xs { box-shadow: 2px 2px 0px 0px #000000; }
.neo-shadow-sm { box-shadow: 3px 3px 0px 0px #000000; }
.neo-shadow { box-shadow: 4px 4px 0px 0px #000000; }
.neo-shadow-md { box-shadow: 6px 6px 0px 0px #000000; }
.neo-shadow-lg { box-shadow: 8px 8px 0px 0px #000000; }
.neo-shadow-xl { box-shadow: 12px 12px 0px 0px #000000; }

/* Interactive Button */
.neo-btn {
  transition: all 0.1s ease;
  cursor: pointer;
}

.neo-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px #000000;
}

.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px #000000;
}

/* Sidebar */
.sidebar-item {
  transition: all 0.1s ease;
}

.sidebar-item:hover {
  transform: translateX(4px);
}

.sidebar-item.active {
  background: #000;
  color: #fff;
}

/* Card */
.neo-card {
  background: white;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px 0px #000000;
}

/* Input */
.neo-input {
  border: 2px solid #000;
  padding: 0.75rem;
  box-shadow: 2px 2px 0px 0px #000000;
  outline: none;
  width: 100%;
}

.neo-input:focus {
  box-shadow: 4px 4px 0px 0px #000000;
}

/* Badge */
.neo-badge {
  padding: 0.25rem 0.75rem;
  border: 2px solid #000;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Table */
.neo-table {
  width: 100%;
  border-collapse: collapse;
}

.neo-table thead {
  background: #f4f4f5;
}

.neo-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 700;
  border-bottom: 3px solid #000;
}

.neo-table td {
  padding: 1rem;
  border-bottom: 1px solid #e4e4e7;
}

.neo-table tr:hover {
  background: #fafafa;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #000;
  font-weight: 500;
  z-index: 100;
  box-shadow: 4px 4px 0px 0px #000000;
  animation: slideIn 0.2s ease;
}

.toast.success { background: #86efac; }
.toast.error { background: #fca5a5; }
.toast.warning { background: #fde047; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.modal-content {
  background: white;
  border: 4px solid #000;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  box-shadow: 8px 8px 0px 0px #000000;
}

/* Skeleton Loading */
.skeleton {
  background: #f4f4f5;
  background-image: linear-gradient(
    to right,
    #f4f4f5 0%,
    #e4e4e7 20%,
    #f4f4f5 40%,
    #f4f4f5 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 104px;
  display: inline-block;
  position: relative;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
}

@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
  border-radius: 4px;
}

.skeleton-title {
  height: 2em;
  margin-bottom: 0.5em;
  border-radius: 4px;
}

.skeleton-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  width: 100%;
}

/* Alpine.js x-cloak */
[x-cloak] {
  display: none !important;
}
