/* 
   AutoCalendar Design System 
   Style: Neobrutalism / Playful
*/

:root {
    --primary-indigo: #4f46e5;
    --primary-emerald: #059669;
    --bg-main: #fefce8; /* bg-yellow-50 */
    --border-width: 4px;
    --shadow-color: rgba(0, 0, 0, 1);
}

body {
    background-color: var(--bg-main);
    font-family: 'Inter', sans-serif;
    color: #000;
}

/* Reusable Utility Components */
.card-playful {
    background: white;
    border: var(--border-width) solid black;
    border-radius: 1.5rem; /* rounded-3xl */
    shadow: 8px 8px 0 0 var(--shadow-color);
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-indigo);
    color: white;
    font-weight: 900;
    border: var(--border-width) solid black;
    border-radius: 1rem;
    box-shadow: 6px 6px 0 0 var(--shadow-color);
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: var(--primary-emerald);
    color: black;
    font-weight: 900;
    border: var(--border-width) solid black;
    border-radius: 1rem;
    box-shadow: 6px 6px 0 0 var(--shadow-color);
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-ghost {
    background: white;
    color: black;
    font-weight: 700;
    border: var(--border-width) solid black;
    border-radius: 1rem;
    box-shadow: 4px 4px 0 0 var(--shadow-color);
    transition: all 0.1s ease;
}

/* Interactive Animations */
.btn-primary:hover, .btn-secondary:hover, .btn-ghost:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 0 var(--shadow-color);
}

.btn-primary:active, .btn-secondary:active, .btn-ghost:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* Form Styles */
input-playful {
    border: var(--border-width) solid #f3f4f6; /* gray-100 */
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

input-playful:focus {
    border-color: var(--primary-indigo);
    outline: none;
}

/* --- NEOBRUTALIST CUSTOM SCROLLBAR --- */
/* Global scrollbar styling */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 3px solid black;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-indigo);
    border: 3px solid black;
    border-radius: 10px;
    box-shadow: inset -2px -2px 0 0 rgba(0,0,0,0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
    cursor: grab;
}

::-webkit-scrollbar-thumb:active {
    background: #4338ca;
    cursor: grabbing;
}

/* Firefox Support */
* {
    scrollbar-width: auto;
    scrollbar-color: var(--primary-indigo) #f1f1f1;
}

/* Specific class for containers with limited height */
.custom-scrollbar {
    scrollbar-gutter: stable;
}
