/* 
  Master CSS - MatchUp Platform
  Digunakan untuk custom styling global di luar utility classes Tailwind.
*/

/* Global Font Smoothing */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar (Agar tampilan lebih rapi dibanding default browser) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1; /* slate-300 match */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; /* slate-400 match */
}

/* --- Component Styles (Extracted from React) --- */

/* Button Component */
.btn {
  padding: 0.5rem 1rem; /* px-4 py-2 */
  border-radius: 0.5rem; /* rounded-lg */
  font-weight: 500; /* font-medium */
  transition: all 200ms; /* transition-all duration-200 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* gap-2 */
  cursor: pointer;
}

.btn-primary {
  background-color: #2563eb; /* bg-blue-600 */
  color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}
.btn-primary:hover {
  background-color: #1d4ed8; /* hover:bg-blue-700 */
}

.btn-secondary {
  background-color: white;
  color: #2563eb; /* text-blue-600 */
  border: 1px solid #bfdbfe; /* border-blue-200 */
}
.btn-secondary:hover {
  background-color: #eff6ff; /* hover:bg-blue-50 */
}

.btn-outline {
  background-color: transparent;
  color: #4b5563; /* text-gray-600 */
  border: 1px solid #d1d5db; /* border-gray-300 */
}
.btn-outline:hover {
  background-color: #f9fafb; /* hover:bg-gray-50 */
}

.btn-minatra {
  background: linear-gradient(to right, #4f46e5, #9333ea); /* from-indigo-600 to-purple-600 */
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}
.btn-minatra:hover {
  opacity: 0.9;
}

/* Badge Component */
.badge {
  padding: 0.25rem 0.5rem; /* px-2 py-1 */
  border-radius: 9999px; /* rounded-full */
  font-size: 0.75rem; /* text-xs */
  font-weight: 600; /* font-semibold */
}

.badge-blue { background-color: #dbeafe; color: #1d4ed8; }
.badge-green { background-color: #dcfce7; color: #15803d; }
.badge-purple { background-color: #f3e8ff; color: #7e22ce; }
.badge-orange { background-color: #ffedd5; color: #c2410c; }
.badge-gray { background-color: #f3f4f6; color: #374151; }
.badge-teal { background-color: #ccfbf1; color: #0f766e; }
.badge-red { background-color: #fee2e2; color: #b91c1c; }
