/* Pierfrancesco - Base CSS */

/* Form styling for Django default widgets */
select, input[type="text"], input[type="email"], input[type="url"],
input[type="number"], input[type="password"], input[type="date"],
input[type="datetime-local"], textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d4d4d8; /* zinc-300 */
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    background-color: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

select:focus, input:focus, textarea:focus {
    border-color: #4f46e5; /* indigo-600 */
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

/* Checkbox */
input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #4f46e5;
}

/* Hide Alpine x-cloak elements before Alpine loads */
[x-cloak] {
    display: none !important;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d8; /* zinc-300 */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa; /* zinc-400 */
}
