/* ====================== APP LAYOUT ====================== */
.app-container {
    display: flex;
    min-height: calc(100vh - 70px);
    max-width: 1400px;
    margin: 0 auto;
    gap: 0.5rem;
    padding: 0.5rem;
    align-items: flex-start;
}

.left-column, .right-column {
    flex: 0 0 235px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.right-column {
    top: 80px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 100px);
}

.right-column, .center-column, .left-column {
    height: 85vh;
    max-height: 85vh !important;
    overflow-y: auto;
}

.center-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}

/* Layout variations for different sections */
.app-container:has(#rooms.active) .left-column,
.app-container:has(#rooms.active) .right-column,
.app-container:has(#shop.active) .left-column,
.app-container:has(#shop.active) .right-column,
.app-container:has(#profile.active) .left-column,
.app-container:has(#profile.active) .right-column {
    display: none !important;
}

.app-container:has(#rooms.active) .center-column,
.app-container:has(#shop.active) .center-column,
.app-container:has(#profile.active) .center-column {
    flex: 1 0 100%;
    max-width: 100%;
}

#chat.active {
    display: flex;
    flex-direction: column;
}

#rooms.active,
#shop.active,
#profile.active {
    display: block;
    width: 100%;
}


 /* Shop Grid  */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.shop-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.shop-item-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 2.5rem;
    color: white;
}

.item-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid black;
}

.shop-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.shop-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}

.shop-item-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.shop-item-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.shop-item-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
  /* ====================== ROOMS GRID ====================== */
        .rooms-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-bottom: 1.5rem;
            flex: 1;
            overflow-y: auto;
        }

        .room-card {
            background: var(--input-bg);
            border-radius: 12px;
            padding: 1.25rem;
            cursor: pointer;
            transition: all var(--transition-normal);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .room-card:hover {
            background: rgba(37, 117, 252, 0.15);
            transform: translateX(5px);
        }

        /* ====================== BUTTON STYLES ====================== */
        .btn {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 12px;
            font-weight: 400;
            cursor: pointer;
            transition: all var(--transition-normal);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 20px rgba(106, 17, 203, 0.5);
        }

        .btn.small {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }