/** PAGE CHMPIS **/
.fungi-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(--fungi);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.fungi-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(--fungi);
    font-weight: bold;
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: var(--fungi-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;
}

.fungi-chambers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chamber-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;
}

.chamber-header {
    padding: 15px;
    background-color: rgba(139, 195, 74, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.chamber-level {
    padding: 3px 10px;
    background-color: var(--fungi-dark);
    border-radius: 15px;
    font-size: 0.8rem;
}

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

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

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

.fungi-slot:hover {
    background-color: rgba(139, 195, 74, 0.2);
    transform: scale(1.05);
}

.fungi-slot.active {
    background-color: rgba(139, 195, 74, 0.3);
    border: 2px solid var(--fungi);
}

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

.fungi-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;
}

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

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

.chamber-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(--fungi-light);
}

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

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

.chamber-btn:hover {
    background-color: var(--fungi-dark);
}

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

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

.fungi-catalog {
    margin-top: 20px;
    display: grid;
    gap: 20px;
}

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

.catalog-tabs {
    display: flex;
    gap: 10px;
}

.catalog-tab {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.catalog-tab.active {
    background-color: var(--fungi);
    color: var(--background);
    font-weight: bold;
}

.catalog-tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

.catalog-search {
    position: relative;
    width: 250px;
}

.catalog-search input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 0.9rem;
}

.catalog-search input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.catalog-search::before {
    content: "🔍";
    position: absolute;
    left: 10px;
    top: 8px;
    font-size: 14px;
}

.fungi-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.fungi-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;
}

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

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

.fungi-info {
    padding: 15px;
}

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

.fungi-rarity {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: #9c27b0;
}

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

.fungi-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.fungi-attribute {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 10px;
    background-color: rgba(139, 195, 74, 0.2);
    color: var(--fungi-light);
}

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

.fungi-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(--fungi);
    border-radius: 3px;
}

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

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

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

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

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

.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(--fungi);
    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(--fungi);
}

.selected-fungi {
    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(--fungi);
    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-maturity {
    font-size: 0.9rem;
    color: var(--fungi-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(--fungi-light);
}

.selected-benefits {
    margin-bottom: 15px;
}

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

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

.benefit-icon {
    width: 24px;
    height: 24px;
    background-color: var(--fungi-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(--fungi);
    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(--fungi-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);
}

.myco-shop {
    margin-top: 30px;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shop-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.shop-item-name {
    font-weight: bold;
}

.shop-item-price {
    background-color: var(--primary);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.shop-item-effect {
    font-size: 0.8rem;
    color: var(--fungi-light);
    margin-bottom: 10px;
}

.shop-item-button {
    align-self: flex-end;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: var(--fungi);
    border: none;
    color: var(--background);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.shop-item-button:hover {
    background-color: var(--fungi-dark);
}

.shop-item-button:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}