/* COMPLETE Tailwind CSS Replacement for paito-warna.php */

/* Layout & Container */
.min-h-screen { min-height: 100vh; }
.container { 
    width: 100%;
    max-width: 1200px;
    margin-left: auto; 
    margin-right: auto;
}
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Sizing */
.w-full { width: 100%; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.min-w-0 { min-width: 0px; }

/* Typography */
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.whitespace-nowrap { white-space: nowrap; }

/* Colors */
.text-white { color: rgb(255 255 255); }
.text-gray-300 { color: rgb(209 213 219); }
.text-gray-400 { color: rgb(156 163 175); }
.text-purple-400 { color: rgb(196 181 253); }
.bg-transparent { background-color: transparent; }
.bg-gray-700 { background-color: rgb(55 65 81); }
.bg-gray-600 { background-color: rgb(75 85 99); }
.bg-orange-600 { background-color: rgb(234 88 12); }
.bg-orange-700 { background-color: rgb(194 65 12); }

/* Spacing - Margins */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }

/* Spacing - Padding */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Flexbox */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* Spacing between elements */
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-7 { grid-column: span 7 / span 7; }

/* Gap */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gray-600 { border-color: rgb(75 85 99); }
.border-gray-400 { border-color: rgb(156 163 175); }
.border-white { border-color: rgb(255 255 255); }
.border-gray-600\/30 { border-color: rgba(75, 85, 99, 0.3); }
.border-yellow-400 { border-color: rgb(250 204 21); }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Effects */
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Transforms */
.scale-110 { transform: scale(1.1); }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Interactive */
.cursor-pointer { cursor: pointer; }

/* Hover States */
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:bg-orange-700:hover { background-color: rgb(194 65 12); }

/* Focus States */
.focus\:ring-2:focus { 
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--tw-ring-color);
}
.focus\:ring-purple-500:focus { 
    --tw-ring-color: rgb(168 85 247); 
}

/* Combined focus classes for convenience */
.focus\:ring-2.focus\:ring-purple-500:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgb(168 85 247);
}

/* Button & Form Styling */
button {
    outline: none;
}

button:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Ensure consistent box-sizing */
*, ::before, ::after {
    box-sizing: border-box;
}

/* Custom dropdown for paito warna - compact grid layout */
.max-h-56 {
    max-height: 14rem; /* 224px - approximately 7 items */
}

.max-h-80 {
    max-height: 20rem; /* 320px - for grid layout */
}

/* Rotation for chevron */
.rotate-180 {
    transform: rotate(180deg);
}

/* Additional colors */
.text-blue-400 { color: rgb(96 165 250); }
.text-green-400 { color: rgb(74 222 128); }
.text-yellow-400 { color: rgb(250 204 21); }
.border-purple-500 { border-color: rgb(168 85 247); }
.bg-gray-700\/50 { background-color: rgba(55, 65, 81, 0.5); }

/* Additional sizes */
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Additional spacing */
.py-20 { padding-top: 5rem; padding-bottom: 2rem; }
.ml-3 { margin-left: 0.75rem; }
.mt-8 { margin-top: 2rem; }

/* Animation */
.animate-spin { 
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Additional responsive classes */
@media (min-width: 768px) {
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Additional text size */
.text-xs { font-size: 0.75rem; line-height: 1rem; }

/* Smooth transitions for Alpine.js */
[x-cloak] { display: none !important; }

/* Logo Styling */
.logo-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* Responsive - Small screens and up (640px+) */
@media (min-width: 640px) {
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:mb-2 { margin-bottom: 0.5rem; }
    .sm\:mb-6 { margin-bottom: 1.5rem; }
    .sm\:mr-2 { margin-right: 0.5rem; }
    .sm\:p-4 { padding: 1rem; }
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .sm\:hidden { display: none; }
    .sm\:block { display: block; }
}