/* css/style.css */

:root {
    --app-primary-green: #28a745;
    --app-dark-green: #198754;
    --app-light-green: #e8f5e9;
    --app-text-on-dark: #ffffff;
    --app-text-on-light: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--app-light-green);
    color: var(--app-text-on-light);
}

/* --- Header / Sidebar --- */
.navbar.bg-success {
    background-color: var(--app-primary-green) !important;
}
.app-title {
    font-weight: bold;
    color: var(--app-text-on-dark);
}
.navbar-brand.app-title {
     color: var(--app-text-on-dark) !important;
     margin-right: auto;
}
header .btn.btn-success {
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 0.375rem 0.75rem;
}
header .btn.btn-success:hover,
header .btn.btn-success:focus {
    color: rgba(255, 255, 255, 1);
    background-color: var(--app-dark-green);
    box-shadow: none;
}
header .btn.btn-success i {
    font-size: 1.25rem;
    vertical-align: middle;
}


.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
}
.offcanvas-title.app-title {
     color: var(--app-dark-green);
}
.offcanvas-body .d-grid .btn {
    text-align: left;
}

/* --- Main Content & Grid --- */
main.container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Litter Info Header --- */
#litter-info-header {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}
#litter-info-header .card-title {
    color: var(--app-dark-green);
}
#litter-info-header strong {
    color: #495057;
}
#litter-info-header span i {
    margin-right: 4px;
    opacity: 0.9;
}

/* --- View Toggle Buttons --- */
#view-toggle-buttons .btn {
    padding: 0.375rem 0.6rem;
    font-size: 0.9rem;
}
#view-toggle-buttons .btn i {
    font-size: 1.1em;
    vertical-align: middle;
}


/* --- Puppy Grid Card Structure --- */
.puppy-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    color: var(--app-text-on-dark);
    height: 100%;
    display: flex;
    flex-direction: column;
     transition: transform 0.2s ease-in-out;
     position: relative;
}
.puppy-card:hover {
     transform: translateY(-3px);
     box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}


.puppy-card-content {
     background-color: rgba(0, 0, 0, 0.3);
     padding: 0;
     flex-grow: 1;
     display: flex;
     flex-direction: column;
     text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
.puppy-card-header {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.puppy-card-details {
    padding: 0.5rem 1rem 0.75rem;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 150px; /* Adjust as needed */
}


.puppy-card h3 {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.puppy-card p {
    margin-bottom: 0.3rem;
    font-size: 0.85em;
    line-height: 1.4;
}

/* Disable button */
.puppy-card .disable-puppy-btn {
    position: absolute; top: 0.5rem; right: 0.5rem;
    background-color: rgba(220, 53, 69, 0.7); color: white;
    border: none; border-radius: 50%;
    width: 28px; height: 28px; font-size: 1rem;
    line-height: 1.5; text-align: center; cursor: pointer;
    font-weight: bold; padding: 0; z-index: 10;
     transition: background-color 0.2s ease;
}
.disable-puppy-btn:hover { background-color: rgba(220, 53, 69, 0.9); }

/* Gender icons */
.gender-icon {
    font-size: 0.9em;
    opacity: 0.9;
    margin-left: 6px;
    vertical-align: baseline;
}


/* --- Modals --- */
.modal-header {
    background-color: var(--app-dark-green);
    color: var(--app-text-on-dark);
    border-bottom: none;
}
.modal-header .btn-close { filter: brightness(0) invert(1); }
#infoModal.show { z-index: 1060; }

/* Add Puppy Modal Specifics */
#add-puppy-form .color-preview {
    height: calc(1.5em + 0.75rem + 2px); background-color: transparent;
    border: 1px solid #ced4da; border-left: none;
    border-radius: 0 0.375rem 0.375rem 0; display: inline-block;
    width: 40px; vertical-align: middle;
}
#add-puppy-form .puppy-sex-toggle label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Weigh Puppies Modal Specifics */
#weigh-current-puppy-area .form-label { font-size: 1.1rem; font-weight: 500; display: flex; align-items: center; }
#weigh-current-puppy-area .puppy-color-indicator {
    width: 1.2em; height: 1.2em; border-radius: 50%; margin-right: 0.5rem;
    border: 1px solid #555; display: inline-block; vertical-align: middle;
    flex-shrink: 0;
}
#weigh-current-puppy-area .puppy-weight-input { max-width: 150px; text-align: right; }
#weigh-summary-area {
    font-weight: 500; text-align: center; padding: 1rem;
    background-color: var(--app-light-green); border-radius: 0.375rem;
}

/* --- Chart Page Specific --- */
.chart-container {
    position: relative;
    height: 65vh;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    margin-bottom: 2rem;
}