/* --- Global Styles --- */
body {
    /* Font is set via inline <style> tag in HTML to use Inter */
    background-color: #f3f4f6; /* Tailwind gray-100 */
}

/* --- Loader Animation (for index.html) --- */
.loader {
    border: 4px solid #f3f3f3; /* light grey */
    border-top: 4px solid #3b82f6; /* blue-500 */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* --- Small Loader (for admin.html login button) --- */
.loader-small {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block; /* To show it inside the button */
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Product Card Enhancements (for index.html) --- */
/* Add a fixed height to the description and title to prevent layout jank */
#product-grid .p-4 h3 {
    height: 28px; /* Approx 1 line */
}

#product-grid .p-4 p {
    height: 40px; /* Approx 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- NEW: Internal Admin Panel Styles --- */
.sidebar {
    transition: transform 0.3s ease-in-out;
}

/* Custom scrollbar for sidebar (optional but nice) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: #2d3748; /* gray-800 */
}
.sidebar::-webkit-scrollbar-thumb {
    background: #718096; /* gray-600 */
    border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a0aec0; /* gray-500 */
}