/* Global Styles */
:root {
    --primary-color: #1F8A70; /* Main Logo mark and buttons. */
    --primary-dark-color: #126353; 
    --secondary-color: #858796;
    --accent-color: #FFAA33; 
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #F5F7F6;
    --dark-color: #253237;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark-color);
    border-color: var(--primary-dark-color);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-dark-color);
    border-color: var(--primary-dark-color);
    color: white;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(31, 138, 112, 0.25);
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Tables */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid var(--light-color);
    font-weight: 600;
}

/* Meal Cards */
.meal-card {
    position: relative;
    overflow: hidden;
}

.meal-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.meal-card:hover img {
    transform: scale(1.05);
}

.meal-card .card-body {
    padding: 1.5rem;
}

.meal-card .edit-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.meal-card:hover .edit-icon {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color) 100%);
    padding: 5rem 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #fff;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--secondary-color);
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark-color);
}

/* Button styles */
.btn-block {
    width: 100%;
}

/* Alert customization */
.alert {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.shopping-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.pro-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 6px;
}

.total-cost {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--success-color);
}

.purchase-stats {
    color: var(--secondary-color);
}

.shopping-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shopping-item {
    padding: 12px;
    border-bottom: 1px solid var(--light-color);
}

.shopping-item:last-child {
    border-bottom: none;
}

.item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.item-name {
    font-weight: 500;
    flex: 1;
}

.item-quantity {
    color: var(--secondary-color);
}

.item-cost {
    color: var(--success-color);
    font-weight: 500;
}

.item-frequency {
    color: var(--secondary-color);
    font-size: 0.9em;
}

.last-purchased {
    color: var(--secondary-color);
    font-size: 0.9em;
}

/* Remove card hover effect on privacy policy page */
body.privacy-policy-page .card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Flat card style for privacy policy page (no hover, no shadow) */
.card-body-flat {
    box-shadow: none !important;
    border: none !important;
    transition: none !important;
}
.card-body-flat:hover {
    transform: none !important;
    box-shadow: none !important;
} 