/* ===================================
   PAGE STYLES - GREEN THEME
   Consistent styling for all pages
   =================================== */

/* ===================================
   PAGE HEADERS
   =================================== */
.page-header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 40px 0;
    margin: -1.5rem -12px 2rem -12px;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.page-header h1,
.page-header h2 {
    color: white;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===================================
   ABOUT US PAGE
   =================================== */
.about-us {
    padding: 40px 0;
}

.about-us .lead {
    color: #2e7d32;
    font-size: 1.2rem;
    line-height: 1.8;
    border-left: 4px solid #4caf50;
    padding-left: 20px;
    margin-bottom: 30px;
}

.about-us h2 {
    color: #1b5e20;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.about-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #81c784);
    border-radius: 2px;
}

.about-us p {
    line-height: 1.8;
    color: #444;
}

.about-us .list-group-item {
    border: none;
    border-left: 3px solid #c8e6c9;
    margin-bottom: 8px;
    padding: 12px 20px;
    background: #f8faf8;
    border-radius: 0 8px 8px 0;
    transition: all 0.2s ease;
}

.about-us .list-group-item:hover {
    border-left-color: #4caf50;
    background: #e8f5e9;
    transform: translateX(5px);
}

.about-us .alert-light {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    border-radius: 15px;
    padding: 20px;
}

.about-us .alert-light a {
    color: #2e7d32;
    font-weight: 600;
}

/* ===================================
   BABY FEED CALENDAR PAGE
   =================================== */
.feed-calendar-header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.feed-calendar-header h2 {
    color: white;
    margin-bottom: 10px;
}

.food-item-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

.food-item-container:hover {
    border-color: #c8e6c9;
    background: #f1f8e9;
}

.food-item-container.selected {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4caf50;
    font-weight: 600;
    color: #1b5e20;
}

/* Age selection buttons */
.btn-group .btn-primary,
a.btn.btn-primary.active {
    background: #2e7d32 !important;
    border-color: #2e7d32 !important;
}

/* ===================================
   CENTILE GRID PAGE
   =================================== */
.centile-grid-container {
    padding: 20px 0;
}

.centile-grid-container .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.centile-grid-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
}

.centile-grid-container .card-body {
    padding: 25px;
}

.centile-grid-container .card-title {
    color: #2e7d32;
    font-weight: 700;
    margin-bottom: 15px;
}

.centile-grid-container .card-img-top {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 20px;
}

/* ===================================
   RESULT PAGE
   =================================== */
.result-container {
    padding: 20px 0;
}

.result-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4caf50;
}

.result-item h5 {
    color: #2e7d32;
    font-weight: 700;
}

#percentileAccordion .accordion-item {
    border: 1px solid #e8f5e9;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

#percentileAccordion .accordion-button {
    background: #f8faf8;
    color: #2e7d32;
    font-weight: 600;
}

#percentileAccordion .accordion-button:not(.collapsed) {
    background: #e8f5e9;
    color: #1b5e20;
}

#percentileAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* Measure table */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: #f1f8e9;
}

.table .form-control {
    border: 2px solid #e8f5e9;
    border-radius: 8px;
}

.table .form-control:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

/* ===================================
   GENERAL CARD IMPROVEMENTS
   =================================== */
.card {
    border: 1px solid #e8f5e9;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.1);
}

.card-title {
    color: #2e7d32;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* ===================================
   ALERTS
   =================================== */
.alert-primary {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    color: #1b5e20;
    border-radius: 12px;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    color: #1b5e20;
    border-radius: 12px;
}

.alert-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
    border-radius: 12px;
}

.alert-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #f57c00;
    border-radius: 12px;
}

.alert-danger {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
    border-radius: 12px;
}

/* ===================================
   FORMS
   =================================== */
.form-control,
.form-select {
    border: 2px solid #e8f5e9;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* ===================================
   BUTTONS (additional styles)
   =================================== */
.btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    border: none;
    border-radius: 10px;
}

.btn-danger:hover {
    background: #c82333;
}

/* ===================================
   SPINNER
   =================================== */
.spinner-border.text-primary {
    color: #2e7d32 !important;
}

/* ===================================
   BREADCRUMBS
   =================================== */
.breadcrumb {
    background: #f8faf8;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.breadcrumb-item a {
    color: #2e7d32;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination .page-link {
    color: #2e7d32;
    border: 1px solid #e8f5e9;
    border-radius: 8px;
    margin: 0 3px;
}

.pagination .page-link:hover {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.pagination .page-item.active .page-link {
    background: #2e7d32;
    border-color: #2e7d32;
}

/* ===================================
   SECTION DIVIDERS
   =================================== */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c8e6c9, transparent);
    margin: 30px 0;
}

/* ===================================
   LOADING STATES
   =================================== */
.loading-overlay {
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #2e7d32;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 20px;
        margin: -1rem -12px 1.5rem -12px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .result-item {
        padding: 20px;
    }
    
    .about-us .lead {
        font-size: 1.1rem;
        padding-left: 15px;
    }
}
