/** PAGE NURSERIE **/
.nursery-management {
    grid-column: 2;
    grid-row: 2;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 20px;
}

.section-title {
    color: var(--nursery);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.overview-card {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.1rem;
    color: var(--nursery);
    font-weight: bold;
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: var(--nursery-light);
}

.card-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.development-pools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(318px, 1fr));
    gap: 20px;
}

.pool-card {
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.pool-header {
    padding: 15px;
    background-color: rgba(240, 98, 146, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pool-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--nursery);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pool-icon {
    width: 30px;
    height: 30px;
    background-color: var(--nursery);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pool-capacity {
    padding: 3px 10px;
    background-color: var(--nursery-dark);
    border-radius: 15px;
    font-size: 0.8rem;
}

.pool-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.larvae-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.larva-slot {
    aspect-ratio: 1/1;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
}

.larva-slot:hover {
    background-color: rgba(240, 98, 146, 0.2);
    transform: scale(1.05);
}

.larva-slot.active {
    background-color: rgba(240, 98, 146, 0.3);
    border: 2px solid var(--nursery);
}

.larva-slot.empty {
    opacity: 0.5;
}

.larva-stage {
    font-size: 14px;
    color: var(--nursery-light);
    margin-top: 5px;
}

.larva-slot .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.larva-slot .progress-fill {
    height: 100%;
    background-color: var(--nursery);
}

.pool-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pool-stat {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1rem;
    font-weight: bold;
    color: var(--nursery-light);
}

.pool-actions {
    display: flex;
    justify-content: space-between;
}

.pool-btn {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--nursery);
    border: none;
    color: var(--background);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pool-btn:hover {
    background-color: var(--nursery-dark);
}

.pool-btn.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.pool-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.larva-types {
    margin-top: 30px;
}

.types-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.type-card {
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

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

.type-image {
    height: 100px;
    background-color: var(--nursery-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.type-info {
    padding: 15px;
}

.type-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.type-cost {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.type-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    min-height: 40px;
}

.type-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.type-stat {
    display: flex;
    flex-direction: column;
}

.stat-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-bar {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background-color: var(--nursery);
    border-radius: 3px;
}

.type-actions {
    display: flex;
    justify-content: space-between;
}

.type-btn {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--nursery);
    border: none;
    color: var(--background);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.type-btn:hover {
    background-color: var(--nursery-dark);
}

.status-bar {
    grid-column: 1 / 4;
    grid-row: 3;
    background-color: var(--surface);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-info {
    flex: 1;
}

.progress-container {
    flex: 2;
    height: 60px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 65%;
    background-color: var(--nursery);
    border-radius: 5px;
}

.status-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--primary);
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #ff8c24;
}

.right-panel {
    grid-column: 3;
    grid-row: 2;
    background-color: var(--surface);
    padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

.panel-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--nursery);
}

.selected-larva {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.selected-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.selected-icon {
    width: 50px;
    height: 50px;
    background-color: var(--nursery);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.selected-info {
    flex: 1;
}

.selected-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-stage {
    font-size: 0.9rem;
    color: var(--nursery-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.selected-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.selected-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.selected-stat {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 4px;
}

.stat-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.stat-number {
    font-size: 1rem;
    font-weight: bold;
    color: var(--nursery-light);
}

.development-progress {
    margin-bottom: 15px;
}

.dev-stages {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dev-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stage-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.stage-dot.active {
    background-color: var(--nursery);
}

.stage-dot.completed {
    background-color: var(--nursery-light);
}

.stage-line {
    position: relative;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 7px;
}

.stage-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--nursery);
    width: 40%;
}

.stage-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.growth-attributes {
    margin-bottom: 15px;
}

.growth-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--nursery);
}

.attribute-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.attribute-icon {
    width: 24px;
    height: 24px;
    background-color: var(--nursery-dark);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.selected-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selected-btn {
    padding: 10px;
    border-radius: 4px;
    background-color: var(--nursery);
    border: none;
    color: var(--background);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.selected-btn:hover {
    background-color: var(--nursery-dark);
}

.selected-btn.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.selected-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.caretaker-section {
    margin-top: 30px;
}

.caretaker-info {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.caretaker-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.caretaker-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--nursery);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.caretaker-details {
    flex: 1;
}

.caretaker-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.caretaker-role {
    font-size: 0.9rem;
    color: var(--nursery-light);
}

.caretaker-skills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 0.9rem;
}

.skill-level {
    display: flex;
    gap: 2px;
}

.skill-point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.skill-point.filled {
    background-color: var(--nursery);
}