/* Styles personnalisés pour l'application Weight Tracker */

/* Variables de couleurs */
:root {
    --primary-color: #0066cc;
    --secondary-color: #5cb85c;
    --accent-color: #f0ad4e;
    --danger-color: #d9534f;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray-color: #e9ecef;
    --background-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #212529;
    --text-muted: #6c757d;
}

/* Styles généraux */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #004c99;
    text-decoration: underline;
}

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

.btn-submit {
    display: block!important;
}

.btn-primary:hover {
    background-color: #004c99;
    border-color: #004c99;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Barre de navigation */

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

.navbar .btn-outline-light {
    border-width: 2px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 0.75rem;
        justify-content: space-around;
        z-index: 1000;
    }

    .bottom-nav a {
        color: #fff;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.8rem;
    }

    .bottom-nav i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
}

/* En-tête */
header {
    padding: 6rem 0;
    background-color: var(--light-color);
}

header h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

/* Cartes */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Formulaires */
.form-control {
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Tableaux */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table th {
    font-weight: 600;
    background-color: var(--light-gray-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 0.25rem;
}

/* Alertes */
.alert {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

/* Graphiques */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

/* Tableau de bord */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-card .card-title {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.dashboard-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.dashboard-card.weight-card {
    border-left-color: var(--primary-color);
}

.dashboard-card.calories-card {
    border-left-color: var(--secondary-color);
}

.dashboard-card.exercise-card {
    border-left-color: var(--accent-color);
}

.dashboard-card.goal-card {
    border-left-color: var(--danger-color);
}

/* Progression */
.progress {
    height: 0.8rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    background-color: var(--light-gray-color);
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Icônes */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pied de page */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: white;
}

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

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 4rem 0;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .dashboard-card .card-value {
        font-size: 1.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Styles pour les pages de journal alimentaire et d'exercices */
.food-item, .exercise-item {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.food-item:hover, .exercise-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.food-item .food-name, .exercise-item .exercise-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.food-item .food-details, .exercise-item .exercise-details {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.macro-circle {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.protein-circle {
    background-color: #ff6b6b;
}

.carbs-circle {
    background-color: #48dbfb;
}

.fat-circle {
    background-color: #feca57;
}

/* Styles pour la page de profil */
.profile-header {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 2rem;
}

.profile-stat-item {
    padding: 1rem;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.profile-stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Styles pour les objectifs */
.goal-progress {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.goal-dates {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.goal-weight {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.goal-weight-item {
    text-align: center;
}

.goal-weight-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.goal-weight-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Styles pour les pages de connexion et d'inscription */
.auth-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray-color);
}

/* Styles pour les boutons d'action */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Styles pour les tooltips */
.tooltip-inner {
    background-color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before, 
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--dark-color);
}

/* Styles pour les modals */
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--light-gray-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--light-gray-color);
    padding: 1.5rem;
}

/* Styles pour les notifications */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray-color);
    transition: background-color 0.3s ease;
}

.notification-item:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.notification-item.unread {
    background-color: rgba(0, 102, 204, 0.1);
}

.notification-time {
    color: var(--gray-color);
    font-size: 0.8rem;
}

/* Styles pour les pages d'erreur */
.error-container {
    text-align: center;
    padding: 5rem 0;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Styles pour l'impression */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    padding: 6rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 700;
    line-height: 1.2;
    font-size: 3.5rem;
}

.hero .lead {
    font-size: 1.5rem;
    font-weight: 300;
}

.hero .btn-light {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Features Section */
.features {
    padding: 8rem 0;
}

.features .card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
}

.features .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.features .fa-3x {
    color: #0d6efd;
    margin-bottom: 1.5rem;
}

.features .card-body {
    padding: 2rem 1rem;
}

/* How It Works Section */
.how-it-works {
    background-color: #f8f9fa;
    padding: 8rem 0;
}

.circle-step {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

/* Success Stories Section */
.success-stories {
    padding: 8rem 0;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid #0d6efd;
    margin-bottom: 1.5rem;
}

.success-stories .card {
    border: none;
    transition: transform 0.3s ease;
    padding: 2rem;
}

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

/* CTA Section */
.cta {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.2rem;
    }

    .features,
    .how-it-works,
    .success-stories,
    .cta {
        padding: 4rem 0;
    }

    .circle-step {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Styles pour le journal alimentaire */
.food-journal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background-color);
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.date-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
}

.nav-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 0.5rem;
    text-decoration: none;
}

.current-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.meal-section {
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.meal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.meal-actions {
    display: flex;
    gap: 0.5rem;
}

.meal-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background-color: var(--background-color);
    border-radius: 8px;
}

/* Styles pour les tableaux */
.table-responsive {
    margin: 0 -1rem;
    padding: 0 1rem;
}

.table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
}

.table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

/* Styles pour les totaux journaliers */
.daily-totals {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    margin: 0 -1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.totals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.total-item {
    text-align: center;
    padding: 0.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
}

.total-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.total-goal {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Styles pour les formulaires */
.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

/* Styles pour les boutons */
.btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

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

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

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

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

/* Styles pour les alertes */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background-color: var(--success-light);
    border-color: var(--success-color);
    color: var(--success-dark);
}

.alert-danger {
    background-color: var(--danger-light);
    border-color: var(--danger-color);
    color: var(--danger-dark);
}

.alert-info {
    background-color: var(--info-light);
    border-color: var(--info-color);
    color: var(--info-dark);
}

/* Media Queries pour Mobile */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .food-journal-header {
        padding: 0.5rem 0;
    }

    .date-navigation {
        max-width: 100%;
        padding: 0 1rem;
    }

    .meal-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .meal-header {
        margin-bottom: 0.75rem;
    }

    .meal-title {
        font-size: 1.1rem;
    }

    .table-responsive {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table th, .table td {
        padding: 0.5rem 0.25rem;
    }

    .daily-totals {
        padding: 0.75rem;
    }

    .totals-grid {
        gap: 0.5rem;
    }

    .total-item {
        padding: 0.25rem;
    }

    .total-value {
        font-size: 1rem;
    }

    .total-goal {
        font-size: 0.75rem;
    }

    .form-control, .form-select {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .alert {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
    }

    /* Ajustements spécifiques pour les petits écrans */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col, .col-md-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Optimisation de l'espace pour les tableaux */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ajustement des boutons d'action */
    .meal-actions .btn {
        padding: 0.4rem 0.6rem;
    }

    /* Optimisation des totaux journaliers */
    .daily-totals {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        padding: 0.75rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    /* Ajout d'un espace en bas pour éviter que le contenu ne soit caché par les totaux */
    body {
        padding-bottom: 80px;
    }
}

/* Styles pour les modales et formulaires existants */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #1e3a8a;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
}

.form-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
}

/* Styles pour les sections de repas */
.meal-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.meal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.nutrient-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 1rem;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.nutrient-item {
    text-align: center;
}

.nutrient-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.nutrient-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Styles pour les totaux journaliers */
.daily-totals {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.total-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.total-goal {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Styles pour les stats globales */
.global-stats {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    padding: 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stats-operation {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.macros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.macro-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.macro-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.macro-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Media Queries pour Mobile */
@media (max-width: 768px) {

    .global-stats {
        padding: 0.75rem;
        margin: 0 0 1rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
    }

    .stats-value {
        font-size: 1rem;
    }

    .stats-label {
        font-size: 0.7rem;
    }

    .stats-operation {
        font-size: 1rem;
        margin-top: 0.25rem;
    }

    .macros-grid {
        gap: 0.5rem;
        padding-top: 0.75rem;
    }

    .macro-value {
        font-size: 1rem;
    }

    .macro-label {
        font-size: 0.7rem;
    }

    .meal-section {
        margin: 0.5rem;
        border-radius: 8px;
    }

    .meal-header {
        padding: 0.5rem;
    }

    .meal-title {
        font-size: 1.1rem;
    }

    .meal-empty {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Optimisation de l'espace pour les tableaux */
    .table-responsive {
        margin: 0;
        padding: 0;
    }

    .table {
        font-size: 0.85rem;
    }

    .table th, .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }

    .table th {
        font-size: 0.8rem;
    }

    /* Ajustement du padding pour le contenu principal */
    .main-content {
        padding: 0.5rem;
    }
}

/* Styles pour la page de suggestions */
.suggestions-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.suggestions-form h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.suggestions-history {
    margin-top: 2rem;
}

.suggestion-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.suggestion-card.unread {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(0, 102, 204, 0.05);
}

.suggestion-card.read {
    border-left: 4px solid var(--secondary-color);
    opacity: 0.8;
}

.suggestion-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

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

.btn-success:hover {
    background-color: #4cae4c;
    border-color: #4cae4c;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.suggestion-type {
    font-weight: 600;
    color: #2c3e50;
    text-transform: capitalize;
}

.suggestion-date {
    color: #666;
    font-size: 0.9rem;
}

.suggestion-content {
    color: #444;
    line-height: 1.6;
    white-space: pre-wrap;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}