/* Custom styles for a fresh and soft UI */

:root {
    --primary-color: #10B981; /* Green-500 */
    --primary-dark: #059669; /* Green-600 */
    --secondary-color: #6366F1; /* Indigo-500 */
    --text-color: #374151; /* Gray-700 */
    --light-bg: #F9FAFB; /* Gray-50 */
    --border-color: #E5E7EB; /* Gray-200 */
}

/* General body styling */
body {
    color: var(--text-color);
    font-family: 'Inter', sans-serif; /* Using a modern font */
}

/* Navigation bar styling */
nav {
    border-bottom: 1px solid var(--border-color);
}

/* Container styling */
.container {
    max-width: 1280px; /* Slightly wider container */
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Button styling */
button,
.btn-primary,
.order-button {
    transition: all 0.3s ease-in-out;
    border-radius: 0.5rem; /* More rounded buttons */
    font-weight: 600;
    cursor: pointer;
}

button:hover,
.btn-primary:hover,
.order-button:hover {
    opacity: 0.9;
    transform: translateY(-2px); /* Subtle hover effect */
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    text-decoration: none;
}

/* Form input styling */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea {
    border-radius: 0.5rem; /* More rounded inputs */
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    transition: all 0.2s ease-in-out;
    width: 100%; /* Full width inputs */
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); /* Green focus ring */
    outline: none;
}

/* Card-like elements */
.card {
    background-color: #ffffff;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
    padding: 1.5rem;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

/* Flash messages */
.flash-message {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.flash-message.success {
    background-color: #d1fae5; /* green-100 */
    color: #065f46; /* green-800 */
}

.flash-message.danger {
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
}

/* Specific adjustments for product cards on index.html */
.product-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card img {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: #4a5568; /* gray-700 */
    margin-bottom: 1rem;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981; /* green-500 */
    margin-bottom: 1rem;
}

.product-card .order-button {
    background-color: #10b981; /* green-500 */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.product-card .order-button:hover {
    background-color: #059669; /* green-600 */
}